随笔分类 - springboot
摘要:SpringBoot项目数据库配置文件中配置多个数据源: #********* primary jdbc ************************** spring.datasource.druid.primary.url=jdbc:mysql://127.0.0.1:3306/one?us
阅读全文
摘要:最近springMVC项目和springboot项目都遇到用@value获取配置文件中配置项值为空的情况,以下是我的解决方法: springMVC项目解决方法: service-context文件中增加下面配置: <context:component-scan base-package="com.t
阅读全文
摘要:application.yml文件需配置如下: server: port: 8081 servlet: context-path: /项目名 logging: level: root: info mybatis: mapper-locations: classpath:mybatis/**/*.xm
阅读全文

浙公网安备 33010602011771号