根据编码规范修改问题
This commit is contained in:
+3
-2
@@ -13,11 +13,12 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 自定义根据用户名获取密码方法替换spring security的默认逻辑
|
||||
* @author lsy
|
||||
*/
|
||||
@Component
|
||||
public class MsUserDetialsService implements UserDetailsService {
|
||||
public class MsUserDetialsServiceImpl implements UserDetailsService {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(MsUserDetialsService.class);
|
||||
private static final Logger log = LoggerFactory.getLogger(MsUserDetialsServiceImpl.class);
|
||||
|
||||
|
||||
@Autowired
|
||||
+1
@@ -20,6 +20,7 @@ public class ImageCodeUtil implements ValidateCodeUtil{
|
||||
/**
|
||||
* 证码生成类
|
||||
*/
|
||||
@Override
|
||||
public ImageCode createValidateCode(ServletWebRequest request){
|
||||
ImageCodeProperties imageCodeProperties = securityProperties.getCode().getImage();
|
||||
//图片验证码的宽度
|
||||
|
||||
+8
-2
@@ -11,8 +11,14 @@ public class Const {
|
||||
* 服务器响应数据字典
|
||||
*/
|
||||
public enum ServerResponseCode{
|
||||
SUCCESS(0,"SUCCESS"),//获取数据成功
|
||||
ERROR(1,"ERROR");//获取数据失败
|
||||
/**
|
||||
* 获取数据成功
|
||||
*/
|
||||
SUCCESS(0,"SUCCESS"),
|
||||
/**
|
||||
* 获取数据失败
|
||||
*/
|
||||
ERROR(1,"ERROR");
|
||||
private Integer code;
|
||||
private String msg;
|
||||
ServerResponseCode(Integer code, String msg) {
|
||||
|
||||
@@ -6,14 +6,8 @@ package com.micro.fast.common.util;
|
||||
*/
|
||||
public class My {
|
||||
private static final String world="李新";
|
||||
@Override
|
||||
public final String toString() {
|
||||
return My.world;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
My my= new My();
|
||||
System.out.println(my.world);
|
||||
System.out.println(My.world);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,14 +6,8 @@ package com.micro.fast.util;
|
||||
*/
|
||||
public class My {
|
||||
private static final String world="李新";
|
||||
@Override
|
||||
public final String toString() {
|
||||
return My.world;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
My my= new My();
|
||||
System.out.println(my.world);
|
||||
System.out.println(My.world);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user