摘要:
spring: datasource: #driver-class-name: com.mysql.cj.jdbc.Driver #驱动注释,采用默认的方式 url: jdbc:mysql://127.0.0.1:3306/jtdb?serverTimezone=GMT%2B8&useUnicode 阅读全文
posted @ 2020-09-02 11:41
岁月染过的梦
阅读(553)
评论(0)
推荐(0)
摘要:
#Mybatisplus整合 mybatis: #定义别名包 将实体对象的包路径进行封装. type-aliases-package: com.jt.pojo #添加xml文件的依赖 mapper-locations: classpath:/mybatis/mappers/*.xml #开启驼峰映射 阅读全文
posted @ 2020-09-02 10:13
岁月染过的梦
阅读(242)
评论(0)
推荐(0)
摘要:
1 将属性写到主配置文件中applacation.properties 直接使用使用@Value注解(spring提供的spel语法) @Value("${image.localDir}") private String localdir; 2 单独写配置文件(例如:image.properties 阅读全文
posted @ 2020-09-02 09:37
岁月染过的梦
阅读(277)
评论(0)
推荐(0)

浙公网安备 33010602011771号