
springboot
河大吴彦祖
C#设备芯片制造设备工程师
展开
-
properties或yaml文件开启驼峰命名
在properties中: mybatis.configuration.map-underscore-to-camel-case=true 在yaml中: mybatis: configuration: map-underscore-to-camel-case: true yaml中mybatis的key值缩进和spring是同级的 ...原创 2020-04-15 10:53:58 · 5973 阅读 · 2 评论 -
yml文件配置数据库
spring: datasource: url: jdbc:mysql://localhost:3306/sprinboot_cache?serverTimeZone=UTC username: root data-password: 123 driver-class-name: com.mysql.cj.jdbc.Driver 注意缩进!!! “spring...原创 2020-04-15 09:24:08 · 13295 阅读 · 0 评论 -
springboot导入druid(yml文件配置)
用druid自动适配springboot的依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1.10<...原创 2020-04-12 10:02:59 · 1071 阅读 · 0 评论