File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
java/com/hand/springboot_cache/entity Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 33
33
<version >3.0.0</version >
34
34
</dependency >
35
35
36
+ <dependency >
37
+ <groupId >org.springframework.boot</groupId >
38
+ <artifactId >spring-boot-starter-data-redis</artifactId >
39
+ </dependency >
40
+
36
41
<dependency >
37
42
<groupId >com.mysql</groupId >
38
43
<artifactId >mysql-connector-j</artifactId >
Original file line number Diff line number Diff line change 1
1
package com .hand .springboot_cache .entity ;
2
2
3
+ import java .io .Serializable ;
4
+
3
5
/**
4
6
* @author zijian.zeng@hand-china.com
5
7
* @since 2023-02-01
6
8
*/
7
- public class Department {
9
+ public class Department implements Serializable {
8
10
9
11
private int id ;
10
12
private String departmentName ;
Original file line number Diff line number Diff line change 1
1
package com .hand .springboot_cache .entity ;
2
2
3
+ import java .io .Serializable ;
4
+
3
5
/**
4
6
* @author zijian.zeng@hand-china.com
5
7
* @since 2023-02-01
6
8
*/
7
- public class Employee {
9
+ public class Employee implements Serializable {
8
10
9
11
private int id ;
10
12
private String lastName ;
Original file line number Diff line number Diff line change @@ -6,4 +6,6 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
6
6
# 开启驼峰命名
7
7
mybatis.configuration.map-underscore-to-camel-case =true
8
8
# 调整日志级别为 debug
9
- logging.level.com.hand.springboot_cache.mapper =debug
9
+ logging.level.com.hand.springboot_cache.mapper =debug
10
+
11
+ spring.redis.host =127.0.0.1
You can’t perform that action at this time.
0 commit comments