Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
civil
civil-bigdata
Commits
985353a0
Commit
985353a0
authored
Aug 09, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改pom
parent
7e91925a
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
31 additions
and
15 deletions
+31
-15
api-server/pom.xml
+2
-0
common-utils/pom.xml
+2
-0
config-server/pom.xml
+2
-0
eureka-server/pom.xml
+2
-0
file-server/pom.xml
+2
-0
gateway-server/pom.xml
+2
-0
pom.xml
+2
-1
portal-server/pom.xml
+2
-0
portal-server/src/main/java/com/zq/portal/config/SpringSecurityConfig.java
+4
-8
resource-server/pom.xml
+2
-0
resource-server/src/main/java/com/zq/resource/config/SpringSecurityConfig.java
+3
-6
sync-server/pom.xml
+2
-0
sys-server/pom.xml
+2
-0
user-server/pom.xml
+2
-0
No files found.
api-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
api-server
</artifactId>
<name>
API服务
</name>
<dependencies>
<dependency>
<groupId>
com.zq
</groupId>
...
...
common-utils/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
civil-common-utils
</artifactId>
<name>
公共模块
</name>
<properties>
<http.client.version>
4.5.12
</http.client.version>
</properties>
...
...
config-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
config-server
</artifactId>
<name>
配置中心
</name>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
...
...
eureka-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
eureka-server
</artifactId>
<name>
注册中心
</name>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
...
...
file-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
file-server
</artifactId>
<name>
文件服务
</name>
<dependencies>
<dependency>
<groupId>
com.zq
</groupId>
...
...
gateway-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
gateway-server
</artifactId>
<name>
网关服务
</name>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
...
...
pom.xml
View file @
985353a0
...
...
@@ -8,6 +8,7 @@
<artifactId>
civil-bigdata
</artifactId>
<packaging>
pom
</packaging>
<version>
1.0.0
</version>
<name>
父工程
</name>
<parent>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -26,7 +27,7 @@
<pagehelper.version>
5.2.0
</pagehelper.version>
<jjwt.version>
0.9.1
</jjwt.version>
<fastjson.version>
1.2.76
</fastjson.version>
<hutool.version>
5.
3.4
</hutool.version>
<hutool.version>
5.
7.7
</hutool.version>
</properties>
<modules>
...
...
portal-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
portal-server
</artifactId>
<name>
门户服务
</name>
<dependencies>
<dependency>
<groupId>
com.zq
</groupId>
...
...
portal-server/src/main/java/com/zq/portal/config/SpringSecurityConfig.java
View file @
985353a0
...
...
@@ -74,13 +74,11 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
Map
<
RequestMappingInfo
,
HandlerMethod
>
handlerMethodMap
=
requestMappingHandlerMapping
.
getHandlerMethods
();
// 获取匿名标记
Map
<
String
,
Set
<
String
>>
anonymousUrls
=
getAnonymousUrl
(
handlerMethodMap
);
Set
<
String
>
a
piSet
=
new
HashSet
<>(
);
Set
<
String
>
a
llType
=
anonymousUrls
.
get
(
RequestMethodEnum
.
ALL
.
getType
()
);
//不使用注解的时候在这添加url放行
apiSet
.
add
(
"/static/map/**"
);
apiSet
.
add
(
"/portal/app/**"
);
apiSet
.
add
(
"/**"
);
allType
.
add
(
"/static/map/**"
);
allType
.
add
(
"/portal/app/**"
);
anonymousUrls
.
put
(
"API"
,
apiSet
);
httpSecurity
// 禁用 CSRF
.
csrf
().
disable
()
...
...
@@ -133,9 +131,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
// DELETE
.
antMatchers
(
HttpMethod
.
DELETE
,
anonymousUrls
.
get
(
RequestMethodEnum
.
DELETE
.
getType
()).
toArray
(
new
String
[
0
])).
permitAll
()
// 所有类型的接口都放行
.
antMatchers
(
anonymousUrls
.
get
(
RequestMethodEnum
.
ALL
.
getType
()).
toArray
(
new
String
[
0
])).
permitAll
()
// API接口放行
.
antMatchers
(
anonymousUrls
.
get
(
"API"
).
toArray
(
new
String
[
0
])).
permitAll
()
.
antMatchers
(
allType
.
toArray
(
new
String
[
0
])).
permitAll
()
// 所有请求都需要认证
.
anyRequest
().
authenticated
()
.
and
().
apply
(
securityConfigurerAdapter
());
...
...
resource-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
resource-server
</artifactId>
<name>
资源目录管理
</name>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
...
...
resource-server/src/main/java/com/zq/resource/config/SpringSecurityConfig.java
View file @
985353a0
...
...
@@ -74,11 +74,10 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
Map
<
RequestMappingInfo
,
HandlerMethod
>
handlerMethodMap
=
requestMappingHandlerMapping
.
getHandlerMethods
();
// 获取匿名标记
Map
<
String
,
Set
<
String
>>
anonymousUrls
=
getAnonymousUrl
(
handlerMethodMap
);
Set
<
String
>
a
piSet
=
new
HashSet
<>(
);
Set
<
String
>
a
llType
=
anonymousUrls
.
get
(
RequestMethodEnum
.
ALL
.
getType
()
);
//不使用注解的时候在这添加url放行
a
piSet
.
add
(
"/user
/app/**"
);
a
llType
.
add
(
"/resource
/app/**"
);
anonymousUrls
.
put
(
"API"
,
apiSet
);
httpSecurity
// 禁用 CSRF
.
csrf
().
disable
()
...
...
@@ -131,9 +130,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
// DELETE
.
antMatchers
(
HttpMethod
.
DELETE
,
anonymousUrls
.
get
(
RequestMethodEnum
.
DELETE
.
getType
()).
toArray
(
new
String
[
0
])).
permitAll
()
// 所有类型的接口都放行
.
antMatchers
(
anonymousUrls
.
get
(
RequestMethodEnum
.
ALL
.
getType
()).
toArray
(
new
String
[
0
])).
permitAll
()
// API接口放行
.
antMatchers
(
anonymousUrls
.
get
(
"API"
).
toArray
(
new
String
[
0
])).
permitAll
()
.
antMatchers
(
allType
.
toArray
(
new
String
[
0
])).
permitAll
()
// 所有请求都需要认证
.
anyRequest
().
authenticated
()
.
and
().
apply
(
securityConfigurerAdapter
());
...
...
sync-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
sync-server
</artifactId>
<name>
同步服务
</name>
<dependencies>
<dependency>
<groupId>
com.zq
</groupId>
...
...
sys-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
sys-server
</artifactId>
<name>
系统服务
</name>
<properties>
<mapstruct.version>
1.3.1.Final
</mapstruct.version>
<alipay.version>
4.9.153.ALL
</alipay.version>
...
...
user-server/pom.xml
View file @
985353a0
...
...
@@ -11,6 +11,8 @@
<artifactId>
user-server
</artifactId>
<name>
用户服务
</name>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment