02 2018 档案
摘要:1、spring.datasource.url=jdbc:mysql://192.168.1.105/spring?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&useSSL=truespring.datasource.user
阅读全文
摘要:事务:@Transactional 数据库配置:
阅读全文
摘要:@controller:处理http请求 @restcontroller:==@controller和@requestbody @requestmapping配置url映射 (1)都能访问到该方法:@RequestMapping(value = {"/demo1","/demo2"},method
阅读全文
摘要:1、启动方式三种 2、测试环境+生产环境,多环境使用配置文件。 3、读取配置文件的方法 两种(1)@value (2)@component @ConfigurationProperties(prefix = "man")分组
阅读全文