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
3d4941f9
Commit
3d4941f9
authored
Nov 22, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增单点登录模块
parent
0a45c6f0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
20 deletions
+3
-20
single-server/src/main/java/com/zq/single/Swagger.java
+1
-1
single-server/src/main/resources/application.yml
+2
-0
single-server/src/main/resources/bootstrap.yml
+0
-19
No files found.
single-server/src/main/java/com/zq/single/Swagger.java
View file @
3d4941f9
...
...
@@ -28,7 +28,7 @@ public class Swagger {
.
groupName
(
"admin"
)
.
enable
(!
"product"
.
equals
(
profile
))
//生产环境关闭
.
select
()
.
apis
(
RequestHandlerSelectors
.
basePackage
(
"com.zq.
mzcas
.controller"
))
.
apis
(
RequestHandlerSelectors
.
basePackage
(
"com.zq.
single
.controller"
))
.
paths
(
PathSelectors
.
any
())
.
build
()
.
apiInfo
(
apiInfo
());
...
...
single-server/src/main/resources/application.yml
View file @
3d4941f9
...
...
@@ -2,6 +2,8 @@ server:
port
:
9878
#配置数据源
spring
:
profiles
:
active
:
@
profiles.active@
application
:
name
:
SINGLE-SERVER
servlet
:
...
...
single-server/src/main/resources/bootstrap.yml
deleted
100644 → 0
View file @
0a45c6f0
spring
:
profiles
:
active
:
@
profiles.active@
cloud
:
config
:
name
:
config
profile
:
${spring.profiles.active}
discovery
:
enabled
:
true
service-id
:
CONFIG-SERVER
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
# defaultZone: http://admin:123456@192.168.0.191:8800/eureka/
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