标签:基本 err cache java localhost boot ble core use
引入cache、web、mysql、mybatis模块创建工程
public class Department { private Integer id; private String departmentName; public Department() { super(); // TODO Auto-generated constructor stub } public Department(Integer id, String departmentName) { super(); this.id = id; this.departmentName = departmentName; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getDepartmentName() { return departmentName; } public void setDepartmentName(String departmentName) { this.departmentName = departmentName; } @Override public String toString() { return "Department [id=" + id + ", departmentName=" + departmentName + "]"; }
spring.datasource.url=jdbc:mysql://localhost:3306/spring_cache spring.datasource.username=root spring.datasource.password=123456 mybatis.configuration.map-underscore-to-camel-case=true logging.level.com.atguigu.cache.mapper=debug debug=true spring.redis.host=118.24.44.169
//主配置类上配置 //@MapperScan指定需要扫描的mapper接口所在的包 @MapperScan("com.cache.mapper")
//主配置类上配置 @EnableCaching
标签:基本 err cache java localhost boot ble core use
原文地址:https://www.cnblogs.com/edda/p/13399411.html