随笔分类 -  springboot

摘要:SpringBoot项目数据库配置文件中配置多个数据源: #********* primary jdbc ************************** spring.datasource.druid.primary.url=jdbc:mysql://127.0.0.1:3306/one?us 阅读全文
posted @ 2020-10-27 15:19 bud 阅读(1437) 评论(0) 推荐(0)
摘要:最近springMVC项目和springboot项目都遇到用@value获取配置文件中配置项值为空的情况,以下是我的解决方法: springMVC项目解决方法: service-context文件中增加下面配置: <context:component-scan base-package="com.t 阅读全文
posted @ 2020-01-08 17:42 bud 阅读(2596) 评论(0) 推荐(0)
摘要:application.yml文件需配置如下: server: port: 8081 servlet: context-path: /项目名 logging: level: root: info mybatis: mapper-locations: classpath:mybatis/**/*.xm 阅读全文
posted @ 2019-12-05 14:14 bud 阅读(3351) 评论(0) 推荐(0)