merge
This commit is contained in:
@@ -313,7 +313,7 @@ public class SysUserService {
|
||||
List<SysRole> sysRoles = sysRoleService.listByUserIdEnable(userId, enable);
|
||||
if (CollectionUtils.isEmpty(sysRoles))
|
||||
return list;
|
||||
//遍获取每个角色拥有的权限,并去重
|
||||
//遍历获取每个角色拥有的权限,并去重
|
||||
List<SysAuthority> temp;
|
||||
for (SysRole sysRole : sysRoles) {
|
||||
temp = sysAuthorityService.listByRoleIdEnable(sysRole.getId(), enable);
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xwbing.util.captcah;
|
||||
package com.xwbing.util.captcha;
|
||||
|
||||
/**
|
||||
* 说明:创建验证码异常类
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xwbing.util.captcah;
|
||||
package com.xwbing.util.captcha;
|
||||
|
||||
import com.xwbing.constant.CommonConstant;
|
||||
import com.xwbing.util.CommonDataUtil;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xwbing.util.captcah;
|
||||
package com.xwbing.util.captcha;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.awt.*;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.xwbing.configuration;
|
||||
|
||||
import com.xwbing.util.captcah.CaptchaServlet;
|
||||
import com.xwbing.util.captcha.CaptchaServlet;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.web.servlet.ServletRegistrationBean;
|
||||
@@ -27,7 +27,7 @@ public class ServletConfig {
|
||||
logger.info("注册验证码servlet ======================= ");
|
||||
ServletRegistrationBean registration = new ServletRegistrationBean(captchaServlet);
|
||||
registration.setEnabled(true);
|
||||
registration.addUrlMappings("/servlet/captchaCode");
|
||||
registration.addUrlMappings("/servlet/captcha");
|
||||
return registration;
|
||||
}
|
||||
/********************************************/
|
||||
|
||||
@@ -27,7 +27,7 @@ public class LoginInterceptor extends HandlerInterceptorAdapter {
|
||||
|
||||
static {
|
||||
//验证码
|
||||
set.add("/servlet/captchaCode");
|
||||
set.add("/servlet/captcha");
|
||||
//swagger
|
||||
set.add("/v2/api-docs");
|
||||
set.add("/swagger-resources");
|
||||
|
||||
Reference in New Issue
Block a user