新增护理等服务模块

This commit is contained in:
纪寒 2023-09-19 18:03:34 +08:00
parent 69bc455b4f
commit c43364003e
5 changed files with 113 additions and 2 deletions

16
pom.xml
View File

@ -198,6 +198,20 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<version>${lombok.version}</version> <version>${lombok.version}</version>
</dependency> </dependency>
<!-- 护理护肤、商城、积分兑换、在线咨询管理端模块 -->
<dependency>
<groupId>com.xinelu</groupId>
<artifactId>xinelu-nurse-manage</artifactId>
<version>${xinelu.version}</version>
</dependency>
<!-- 护理护肤、商城、积分兑换、在线咨询小程序和APP模块 -->
<dependency>
<groupId>com.xinelu</groupId>
<artifactId>xinelu-nurse-applet</artifactId>
<version>${xinelu.version}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
@ -208,6 +222,8 @@
<module>xinelu-quartz</module> <module>xinelu-quartz</module>
<module>xinelu-generator</module> <module>xinelu-generator</module>
<module>xinelu-common</module> <module>xinelu-common</module>
<module>xinelu-nurse-manage</module>
<module>xinelu-nurse-applet</module>
</modules> </modules>
<packaging>pom</packaging> <packaging>pom</packaging>

View File

@ -61,6 +61,17 @@
<artifactId>xinelu-generator</artifactId> <artifactId>xinelu-generator</artifactId>
</dependency> </dependency>
<!-- 护理护肤、商城、积分兑换、在线咨询小程序和APP模块 -->
<dependency>
<groupId>com.xinelu</groupId>
<artifactId>xinelu-nurse-manage</artifactId>
</dependency>
<!-- 护理护肤、商城、积分兑换、在线咨询小程序和APP模块 -->
<dependency>
<groupId>com.xinelu</groupId>
<artifactId>xinelu-nurse-applet</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -20,6 +20,8 @@ import org.springframework.security.web.authentication.UsernamePasswordAuthentic
import org.springframework.security.web.authentication.logout.LogoutFilter; import org.springframework.security.web.authentication.logout.LogoutFilter;
import org.springframework.web.filter.CorsFilter; import org.springframework.web.filter.CorsFilter;
import javax.annotation.Resource;
/** /**
* spring security配置 * spring security配置
* *
@ -30,7 +32,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
/** /**
* 自定义用户认证逻辑 * 自定义用户认证逻辑
*/ */
@Autowired @Resource
private UserDetailsService userDetailsService; private UserDetailsService userDetailsService;
/** /**
@ -109,7 +111,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/login", "/register", "/captchaImage").anonymous() .antMatchers("/login", "/register", "/captchaImage").anonymous()
// 静态资源可匿名访问 // 静态资源可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/applet/test/**", "/nurseApplet/**", "/nurseApp/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated() .anyRequest().authenticated()
.and() .and()

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>xinelu</artifactId>
<groupId>com.xinelu</groupId>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>xinelu-nurse-applet</artifactId>
<description>
护理护肤、商城、积分兑换、在线咨询小程序和APP模块
</description>
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.xinelu</groupId>
<artifactId>xinelu-common</artifactId>
</dependency>
<!-- 护理护肤、商城、积分兑换、在线咨询管理端模块 -->
<dependency>
<groupId>com.xinelu</groupId>
<artifactId>xinelu-nurse-manage</artifactId>
</dependency>
<!-- lombok 依赖-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- 防止进入swagger页面报类型转换错误排除3.0.0中的引用手动增加1.6.2版本 -->
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.6.2</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>xinelu</artifactId>
<groupId>com.xinelu</groupId>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>xinelu-nurse-manage</artifactId>
<description>
护理护肤、商城、积分兑换、在线咨询管理端模块
</description>
<dependencies>
<!-- 系统公共模块 -->
<dependency>
<groupId>com.xinelu</groupId>
<artifactId>xinelu-common</artifactId>
</dependency>
<!-- lombok 依赖-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- 防止进入swagger页面报类型转换错误排除3.0.0中的引用手动增加1.6.2版本 -->
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.6.2</version>
</dependency>
</dependencies>
</project>