基于SpringBoot,Shiro,Redis,Mybatis,SSO的多模块系统,包含了SSO单点登陆, 通用后台管理,NewBee-mall商城,每日一文等多个模块,支持Shiro与SSO模块的集成,易于上手,学习,二次开发。
基于SpringBoot,Shiro,Redis,Mybatis plus的多模块系统,实现了SSO单点登陆。 集成通用后台管理,新蜂商城,每日一文等多个模块,支持Shiro与SSO模块的集成,易于上手,学习,二次开发。
<dependency>
<groupId>com.wayn</groupId>
<artifactId>wayn-ssocore</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
wayn:
uploadDir: E:/wayn/upload # 上传路劲
ssoServerUrl: http://127.0.0.1:82/ssoserver # sso服务访问路径
currentServerUrl: http://127.0.0.1:83/others # 当前项目访问路径
xssFilter: # 过滤器忽略路径
excludeUrls: /**/*.js,/**/*.css,/favicon.ico,/fonts/*,/plugin/*
@Configuration
public class WebConfig implements WebMvcConfigurer {
@Value("${wayn.ssoServerUrl}")
private String ssoServerUrl;
@Value("${wayn.xssFilter.excludeUrls}")
private String excludeUrls;
@Bean
public FilterRegistrationBean<SsoFilter> filterRegistrationBean() {
FilterRegistrationBean<SsoFilter> bean = new FilterRegistrationBean<>();
SsoFilter ssoFilter = new SsoFilter();
ssoFilter.setSsoServerUrl(ssoServerUrl);
bean.setFilter(ssoFilter);
bean.setDispatcherTypes(DispatcherType.REQUEST);
bean.setName("ssoFilter");
bean.setUrlPatterns(Collections.singletonList("/*"));
LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap<>();
linkedHashMap.put("excludeUrls", excludeUrls);
bean.setInitParameters(linkedHashMap);
return bean;
}
@Bean
public RestTemplate restTemplate() {
return new RestTemplate(new HttpsClientRequestFactory());
}
...
}
wayn-admin
后台权限管理系统
wayn-cmomon
后台权限系统的通用类聚集模块
wayn-framework
后台权限系统的核心配置模块,包含shiro,数据源等配置
wayn-mall
newbee-mall商城系统,包含前后端系统
wayn-others
集成framework的爬虫模块,包含每日一文
wayn-ssocore
sso单点登录的核心模块
wayn-ssoserver
sso单点登录系统,供其他系统集成使用
登陆 登出