Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
app-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
back-end
app-service
Commits
65be681c
Commit
65be681c
authored
Aug 05, 2020
by
lijd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限修改
parent
0e173368
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
8 deletions
+89
-8
AuthFilter.java
...in/java/com/esv/freight/app/common/filter/AuthFilter.java
+2
-1
FeignConfigure.java
src/main/java/com/esv/freight/app/config/FeignConfigure.java
+4
-4
application-demo.yml
src/main/resources/application-demo.yml
+80
-0
bootstrap.yml
src/main/resources/bootstrap.yml
+3
-3
No files found.
src/main/java/com/esv/freight/app/common/filter/AuthFilter.java
View file @
65be681c
...
@@ -43,7 +43,8 @@ public class AuthFilter implements Filter {
...
@@ -43,7 +43,8 @@ public class AuthFilter implements Filter {
"/app/message/push2Account"
,
"/app/message/push2Account"
,
"/app/driverBackend/account/stop"
,
"/app/driverBackend/account/stop"
,
"/app/ownerBackend/account/stop"
,
"/app/ownerBackend/account/stop"
,
"/app/driverBackend/password/reset"
};
"/app/driverBackend/password/reset"
,
"/app/esvActuator/health/diskSpace"
};
@Autowired
@Autowired
private
ProtocolComponent
protocolComponent
;
private
ProtocolComponent
protocolComponent
;
...
...
src/main/java/com/esv/freight/app/config/FeignConfigure.java
View file @
65be681c
...
@@ -48,11 +48,11 @@ public class FeignConfigure {
...
@@ -48,11 +48,11 @@ public class FeignConfigure {
RequestInterceptor
requestInterceptor
=
((
requestTemplate
->
{
RequestInterceptor
requestInterceptor
=
((
requestTemplate
->
{
requestTemplate
.
header
(
"trace_id"
,
MDC
.
get
(
"traceId"
));
requestTemplate
.
header
(
"trace_id"
,
MDC
.
get
(
"traceId"
));
requestTemplate
.
header
(
"application_name"
,
applicationName
);
requestTemplate
.
header
(
"application_name"
,
applicationName
);
requestTemplate
.
header
(
"Source-Type"
,
"4"
);
requestTemplate
.
header
(
"Source-Type"
,
ReqUtils
.
getRequestHeader
(
"Source-Type"
)
);
requestTemplate
.
header
(
"esv_data_perm"
,
"
0
"
);
requestTemplate
.
header
(
"esv_data_perm"
,
"
1
"
);
requestTemplate
.
header
(
"esv_system"
,
"app"
);
requestTemplate
.
header
(
"esv_system"
,
"app"
);
requestTemplate
.
header
(
"esv_department"
,
"
5
"
);
requestTemplate
.
header
(
"esv_department"
,
"
0
"
);
requestTemplate
.
header
(
"esv_department_children"
,
"
5,6,7
"
);
requestTemplate
.
header
(
"esv_department_children"
,
""
);
requestTemplate
.
header
(
"esv_tenant"
,
ReqUtils
.
getRequestHeader
(
"tenantId"
));
requestTemplate
.
header
(
"esv_tenant"
,
ReqUtils
.
getRequestHeader
(
"tenantId"
));
TokenInfoPojo
tokenInfoPojo
=
tokenComponent
.
getTokenInfo
();
TokenInfoPojo
tokenInfoPojo
=
tokenComponent
.
getTokenInfo
();
...
...
src/main/resources/application-demo.yml
0 → 100644
View file @
65be681c
spring
:
main
:
allow-bean-definition-overriding
:
true
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://119.3.171.225:3306/freight-demo?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false
username
:
root
password
:
root
initial-size
:
5
min-idle
:
5
max-active
:
20
max-wait
:
60000
time-between-eviction-runs-millis
:
60000
min-evictable-idle-time-millis
:
300000
validation-query
:
SELECT 1 FROM DUAL
test-while-idle
:
true
test-on-borrow
:
false
test-on-return
:
false
filter
:
stat
:
log-slow-sql
:
true
slow-sql-millis
:
1000
merge-sql
:
false
redis
:
database
:
0
host
:
119.3.171.225
port
:
6379
password
:
timeout
:
1000
jedis
:
pool
:
max-active
:
8
max-wait
:
-1
max-idle
:
8
min-idle
:
0
feign
:
client
:
config
:
default
:
connectTimeout
:
10000
readTimeout
:
10000
#mybatis
mybatis-plus
:
mapper-locations
:
classpath*:/mapper/**/*Dao.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage
:
com.esv.freight.*.*.entity,com.esv.freight.*.*.dto
check-config-location
:
true
#原生配置
configuration
:
map-underscore-to-camel-case
:
true
cache-enabled
:
false
call-setters-on-nulls
:
true
jdbc-type-for-null
:
'
null'
global-config
:
banner
:
true
#数据库相关配置
db-config
:
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type
:
AUTO
logic-delete-value
:
1
logic-not-delete-value
:
0
ribbon
:
eager-load
:
enabled
:
true
clients
:
freight-base-service,freight-bill-serivce,freight-tms-service
management
:
endpoints
:
web
:
exposure
:
# "*"开放所有监控端点,指定监控端点,用逗号分隔
include
:
health,loggers
base-path
:
/esvActuator
endpoint
:
health
:
show-details
:
always
\ No newline at end of file
src/main/resources/bootstrap.yml
View file @
65be681c
...
@@ -3,14 +3,14 @@ server:
...
@@ -3,14 +3,14 @@ server:
servlet
:
servlet
:
context-path
:
/app
context-path
:
/app
nacos
:
nacos
:
url
:
1
92.168.31.248
:8848
url
:
1
19.3.171.225
:8848
namespace
:
aad5aa26-5351-4e7a-a65e-ecb332f3c52c
namespace
:
38512237-cfe2-44e5-a6ba-df156723d7b6
group
:
DEFAULT_GROUP
group
:
DEFAULT_GROUP
spring
:
spring
:
application
:
application
:
name
:
freight-app-service
name
:
freight-app-service
profiles
:
profiles
:
active
:
de
v
active
:
de
mo
cloud
:
cloud
:
nacos
:
nacos
:
discovery
:
discovery
:
...
...
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