Commit 8f2f8ad0fc5c4ee1cb98c82fe93bbbd1a563b4e2
1 parent
f459256f
fix: resolve redis serial date bug
Showing
3 changed files
with
4 additions
and
4 deletions
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java
| @@ -25,14 +25,14 @@ public class BaseEntity implements Serializable | @@ -25,14 +25,14 @@ public class BaseEntity implements Serializable | ||
| 25 | private String createBy; | 25 | private String createBy; |
| 26 | 26 | ||
| 27 | /** 创建时间 */ | 27 | /** 创建时间 */ |
| 28 | - @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8") | 28 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| 29 | private Date createTime; | 29 | private Date createTime; |
| 30 | 30 | ||
| 31 | /** 更新者 */ | 31 | /** 更新者 */ |
| 32 | private String updateBy; | 32 | private String updateBy; |
| 33 | 33 | ||
| 34 | /** 更新时间 */ | 34 | /** 更新时间 */ |
| 35 | - @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8") | 35 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| 36 | private Date updateTime; | 36 | private Date updateTime; |
| 37 | 37 | ||
| 38 | /** 备注 */ | 38 | /** 备注 */ |
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
| @@ -67,7 +67,7 @@ public class SysUser extends BaseEntity | @@ -67,7 +67,7 @@ public class SysUser extends BaseEntity | ||
| 67 | private String loginIp; | 67 | private String loginIp; |
| 68 | 68 | ||
| 69 | /** 最后登录时间 */ | 69 | /** 最后登录时间 */ |
| 70 | - @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT) | 70 | + @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss", type = Type.EXPORT) |
| 71 | private Date loginDate; | 71 | private Date loginDate; |
| 72 | 72 | ||
| 73 | /** 部门对象 */ | 73 | /** 部门对象 */ |
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
| @@ -111,7 +111,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter | @@ -111,7 +111,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter | ||
| 111 | // 过滤请求 | 111 | // 过滤请求 |
| 112 | .authorizeRequests() | 112 | .authorizeRequests() |
| 113 | // 对于登录login 注册register 验证码captchaImage 允许匿名访问 | 113 | // 对于登录login 注册register 验证码captchaImage 允许匿名访问 |
| 114 | - .antMatchers("/getInfo","/driver/**","/in/**","/eexception/**","/equipment/**","/login", "/register", "/captchaImage").permitAll() | 114 | + .antMatchers("/driver/**","/in/**","/eexception/**","/equipment/**","/login", "/register", "/captchaImage").permitAll() |
| 115 | // 静态资源,可匿名访问 | 115 | // 静态资源,可匿名访问 |
| 116 | .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() | 116 | .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() |
| 117 | .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() | 117 | .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |