提交 e602695d authored 作者: gongwenjie's avatar gongwenjie

合并分支 'gwj' 到 'master'

Gwj 查看合并请求 !60
流水线 #87 已失败 于阶段
package com.zjty.tynotes.pas.config;
import com.zjty.tynotes.pas.config.handler.MyFailHandler;
import com.zjty.tynotes.pas.dao.AuthorityDao;
import com.zjty.tynotes.pas.dao.RoleAuthorityDao;
import com.zjty.tynotes.pas.dao.RoleDao;
......@@ -49,7 +50,7 @@ public class MyUserDetailsServiceImpl implements UserDetailsService {
@Autowired
private Init init;
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException{
System.out.println("userService验证:" + username);
if(username.equals("root")){
User root = init.root;
......@@ -97,6 +98,9 @@ public class MyUserDetailsServiceImpl implements UserDetailsService {
user.setArrayList(list);
}
if(user==null){
throw new UsernameNotFoundException("用户名或密码不正确");
}
return user;
}
}
......
......@@ -50,7 +50,6 @@ public class User implements UserDetails, Serializable {
@ApiModelProperty(value = "联系方式",example = "113665465465")
private String phone1;
@NotEmpty(message = "联系方式不可为空")
@ApiModelProperty(value = "联系方式",example = "113665465465")
private String phone2;
......
......@@ -43,6 +43,6 @@ public class UnionApplication {
connector.setPort(8084);
connector.setRedirectPort(8289);
return connector;
}
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论