未完待续
1.application.yml,application.properties同级同时存在properties优先级高
当然最近学cloud发现还有更高级的bootstrap.yml
com.mysql.jdbc.Driver 是 mysql-connector-java 5中的,
com.mysql.cj.jdbc.Driver 是 mysql-connector-java 6中的
Spring Boot 2.1.0中 druid连接池的yml配置 免去配置类 纯yml:https://blog.csdn.net/qq_42235671/article/details/84592028
Spring Boot常用配置:https://blog.csdn.net/je_ge/article/details/54783184
Kaptcha :https://www.jianshu.com/p/a3525990cd82
我喜欢的boot引入方法,引入依赖
<!-- SpringBoot 依赖配置 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@Configuration
@SpringBootApplication
@MapperScan(basePackages=" ")
@MyBatisDao
@Controller
@RequestMapping
@Autowired
@ModelAttribute
@RequiresPermissions
@ResponseBody
@Validated
@RequestBody
@Service
@Transactional