摘要: 一、自动配置 在生产环境中,可以使用DataSource池进行自动配置。 如果你使用spring-boot-starter-jdbc或spring-boot-starter-data-jpa 'starter POMs',你将会自动获取对tomcat-jdbc的依赖。 通过spring-boot-s 阅读全文
posted @ 2020-05-06 15:38 Anthea_ly 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 一、配置 Spring Boot默认使用LogBack日志系统,如果不需要更改为其他日志系统如Log4j等,则无需多余的配置,LogBack默认将日志打印到控制台上。 1、如果要使用LogBack,原则上是需要添加dependency依赖的 <dependency> <groupId>org.spr 阅读全文
posted @ 2020-05-06 10:51 Anthea_ly 阅读(226) 评论(0) 推荐(0) 编辑