feat:测试配置文件
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
FROM eclipse-temurin:21-jre
|
||||
|
||||
## 创建目录,并使用它作为工作目录
|
||||
RUN mkdir -p /nl-module-lms-server
|
||||
WORKDIR /nl-module-lms-server
|
||||
RUN mkdir -p /nl-module-system-server
|
||||
WORKDIR /nl-module-system-server
|
||||
## 将后端项目的 Jar 文件,复制到镜像中
|
||||
COPY ./target/nl-module-lms-server.jar app.jar
|
||||
COPY ./target/nl-module-system-server.jar app.jar
|
||||
|
||||
## 设置 TZ 时区
|
||||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.springframework.security.config.annotation.web.configurers.AuthorizeH
|
||||
*
|
||||
* @author zhouz
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false, value = "baseSecurityConfiguration")
|
||||
@Configuration(proxyBeanMethods = false, value = "wmsSecurityConfiguration")
|
||||
public class SecurityConfiguration {
|
||||
|
||||
/*
|
||||
@@ -93,7 +93,7 @@ public class SecurityConfiguration {
|
||||
|
||||
3. 遵循了项目中每个模块定义各自安全配置的标准模式
|
||||
* */
|
||||
@Bean("baseAuthorizeRequestsCustomizer")
|
||||
@Bean("wmsAuthorizeRequestsCustomizer")
|
||||
public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() {
|
||||
return new AuthorizeRequestsCustomizer() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user