File tree 11 files changed +77
-50
lines changed
authentication-server/src/main
java/com/springboot/cloud/auth/authentication/provider
authorization-server/src/main
java/com/springboot/auth/authorization/provider
consumer-feign/src/main/resources
consumer-ribbon/src/main/resources
producer/src/main/resources
producer-jpa/src/main/resources
11 files changed +77
-50
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .springboot .cloud .sysadmin .organization .entity .po .Resource ;
4
4
import com .springboot .cloud .common .core .entity .vo .Result ;
5
+ import org .springframework .stereotype .Component ;
5
6
6
7
import java .util .HashSet ;
7
8
import java .util .Set ;
8
9
10
+ @ Component
9
11
public class ResourceProviderFallback implements ResourceProvider {
10
12
@ Override
11
13
public Result <Set <Resource >> resources () {
Original file line number Diff line number Diff line change @@ -13,24 +13,27 @@ spring:
13
13
url : jdbc:${DATASOURCE_DBTYPE:mysql}://${DATASOURCE_HOST:localhost}:${DATASOURCE_PORT:3306}/sc_auth?characterEncoding=UTF-8&useUnicode=true&useSSL=false
14
14
username : ${DATASOURCE_USERNAME:root}
15
15
password : ${DATASOURCE_PASSWORD:root123}
16
-
17
16
zipkin :
18
17
enabled : true
19
18
sender :
20
19
type : rabbit
21
20
sleuth :
22
21
sampler :
23
22
probability : 1.0
24
-
25
23
mvc :
26
24
throw-exception-if-no-handler-found : true
27
-
28
25
# jwt的密钥
29
26
security :
30
27
oauth2 :
31
28
jwt :
32
29
signingKey : 123456
33
30
31
+ feign :
32
+ sentinel :
33
+ enabled : true
34
+ okhttp :
35
+ enabled : true
36
+
34
37
logging :
35
38
level :
36
39
org.springframework.web : debug
@@ -50,3 +53,4 @@ management:
50
53
mybatis :
51
54
configuration :
52
55
map-underscore-to-camel-case : true
56
+
Original file line number Diff line number Diff line change 3
3
import com .springboot .auth .authorization .entity .Role ;
4
4
import com .springboot .auth .authorization .entity .User ;
5
5
import com .springboot .cloud .common .core .entity .vo .Result ;
6
+ import org .springframework .stereotype .Component ;
6
7
7
8
import java .util .HashSet ;
8
9
import java .util .Set ;
9
10
11
+ @ Component
10
12
public class OrganizationProviderFallback implements OrganizationProvider {
11
13
12
14
@ Override
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ logging:
41
41
file :
42
42
max-size : 1GB
43
43
44
+ feign :
45
+ sentinel :
46
+ enabled : true
47
+ okhttp :
48
+ enabled : true
49
+
44
50
management :
45
51
endpoints :
46
52
web :
Original file line number Diff line number Diff line change 1
- server :
2
- port : 8041
3
-
4
1
spring :
5
- application :
6
- name : feign-consumer
7
- cloud :
8
- nacos :
9
- discovery :
10
- server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
11
- sentinel :
12
- transport :
13
- dashboard : ${SENTINEL_DASHBOARD_HOST:localhost}:${SENTINEL_DASHBOARD_PORT:8021}
14
-
15
2
rabbitmq :
16
3
host : ${RABBIT_MQ_HOST:localhost}
17
4
port : ${RABBIT_MQ_PORT:5672}
18
5
username : ${RABBIT_MQ_USERNAME:guest}
19
6
password : ${RABBIT_MQ_PASSWORD:guest}
20
-
21
7
zipkin :
22
8
sender :
23
9
type : rabbit
@@ -29,7 +15,6 @@ spring:
29
15
enabled : true
30
16
processor :
31
17
enabled : true
32
-
33
18
mvc :
34
19
throw-exception-if-no-handler-found : true
35
20
servlet :
@@ -46,6 +31,12 @@ logging:
46
31
file :
47
32
max-size : 1GB
48
33
34
+ feign :
35
+ sentinel :
36
+ enabled : true
37
+ okhttp :
38
+ enabled : true
39
+
49
40
management :
50
41
endpoints :
51
42
web :
Original file line number Diff line number Diff line change
1
+ server :
2
+ port : 8041
3
+ spring :
4
+ application :
5
+ name : feign-consumer
6
+ cloud :
7
+ nacos :
8
+ discovery :
9
+ server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
10
+ config :
11
+ server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
12
+ file-extension : yml
13
+ sentinel :
14
+ transport :
15
+ dashboard : ${SENTINEL_DASHBOARD_HOST:localhost}:${SENTINEL_DASHBOARD_PORT:8021}
16
+ bus :
17
+ trace :
18
+ enabled : true
Original file line number Diff line number Diff line change 1
- server :
2
- port : 8020
3
-
4
1
spring :
5
- application :
6
- name : ribbon-consumer
7
- cloud :
8
- nacos :
9
- discovery :
10
- server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
11
- sentinel :
12
- transport :
13
- dashboard : ${SENTINEL_DASHBOARD_HOST:localhost}:${SENTINEL_DASHBOARD_PORT:8021}
14
-
15
2
rabbitmq :
16
3
host : ${RABBIT_MQ_HOST:localhost}
17
4
port : ${RABBIT_MQ_PORT:5672}
18
5
username : ${RABBIT_MQ_USERNAME:guest}
19
6
password : ${RABBIT_MQ_PASSWORD:guest}
20
-
21
7
zipkin :
22
8
enabled : true
23
9
sender :
24
10
type : rabbit
25
11
sleuth :
26
12
sampler :
27
13
probability : 1.0
28
-
29
14
mvc :
30
15
throw-exception-if-no-handler-found : true
31
16
servlet :
Original file line number Diff line number Diff line change
1
+ server :
2
+ port : 8020
3
+ spring :
4
+ application :
5
+ name : ribbon-consumer
6
+ cloud :
7
+ nacos :
8
+ discovery :
9
+ server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
10
+ config :
11
+ server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
12
+ file-extension : yml
13
+ sentinel :
14
+ transport :
15
+ dashboard : ${SENTINEL_DASHBOARD_HOST:localhost}:${SENTINEL_DASHBOARD_PORT:8021}
16
+ bus :
17
+ trace :
18
+ enabled : true
Original file line number Diff line number Diff line change 1
- server :
2
- port : 9002
3
-
4
1
spring :
5
- application :
6
- name : producer-jpa
7
- cloud :
8
- nacos :
9
- discovery :
10
- server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
11
- sentinel :
12
- transport :
13
- dashboard : ${SENTINEL_DASHBOARD_HOST:localhost}:${SENTINEL_DASHBOARD_PORT:8021}
14
-
15
2
rabbitmq :
16
3
host : ${RABBIT_MQ_HOST:localhost}
17
4
port : ${RABBIT_MQ_PORT:5672}
@@ -26,15 +13,13 @@ spring:
26
13
url : jdbc:${DATASOURCE_DBTYPE:mysql}://${DATASOURCE_HOST:localhost}:${DATASOURCE_PORT:3306}/sc_product?characterEncoding=UTF-8&useUnicode=true&useSSL=false
27
14
username : ${DATASOURCE_USERNAME:root}
28
15
password : ${DATASOURCE_PASSWORD:root123}
29
-
30
16
zipkin :
31
17
enabled : true
32
18
sender :
33
19
type : rabbit
34
20
sleuth :
35
21
sampler :
36
22
probability : 1.0
37
-
38
23
mvc :
39
24
throw-exception-if-no-handler-found : true
40
25
servlet :
Original file line number Diff line number Diff line change
1
+ server :
2
+ port : 9002
3
+ spring :
4
+ application :
5
+ name : producer-jpa
6
+ cloud :
7
+ nacos :
8
+ discovery :
9
+ server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
10
+ config :
11
+ server-addr : ${REGISTER_HOST:localhost}:${REGISTER_PORT:8848}
12
+ file-extension : yml
13
+ sentinel :
14
+ transport :
15
+ dashboard : ${SENTINEL_DASHBOARD_HOST:localhost}:${SENTINEL_DASHBOARD_PORT:8021}
16
+ bus :
17
+ trace :
18
+ enabled : true
Original file line number Diff line number Diff line change @@ -20,15 +20,13 @@ spring:
20
20
url : jdbc:${DATASOURCE_DBTYPE:mysql}://${DATASOURCE_HOST:localhost}:${DATASOURCE_PORT:3306}/sc_product?characterEncoding=UTF-8&useUnicode=true&useSSL=false
21
21
username : ${DATASOURCE_USERNAME:root}
22
22
password : ${DATASOURCE_PASSWORD:root123}
23
-
24
23
zipkin :
25
24
enabled : true
26
25
sender :
27
26
type : rabbit
28
27
sleuth :
29
28
sampler :
30
29
probability : 1.0
31
-
32
30
mvc :
33
31
throw-exception-if-no-handler-found : true
34
32
servlet :
You can’t perform that action at this time.
0 commit comments