File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
service/zuul/src/main/java/com/newtouch/cloud/demo/service/zuul/config Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >org.springframework.boot</groupId >
7
7
<artifactId >spring-boot-starter-parent</artifactId >
8
- <version >2.1.9 .RELEASE</version >
8
+ <version >2.1.10 .RELEASE</version >
9
9
<relativePath />
10
10
</parent >
11
11
<groupId >com.newtouch.cloud</groupId >
25
25
26
26
<properties >
27
27
<java .version>1.8</java .version>
28
- <spring-cloud .version>Greenwich.SR3 </spring-cloud .version>
28
+ <spring-cloud .version>Greenwich.SR4 </spring-cloud .version>
29
29
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
30
30
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
31
31
<dockerfile .maven.plugin.version>1.4.13</dockerfile .maven.plugin.version>
Original file line number Diff line number Diff line change
1
+ package com .newtouch .cloud .demo .service .zuul .config ;
2
+
3
+ import org .springframework .boot .context .properties .ConfigurationProperties ;
4
+ import org .springframework .cloud .context .config .annotation .RefreshScope ;
5
+ import org .springframework .cloud .netflix .zuul .filters .ZuulProperties ;
6
+ import org .springframework .context .annotation .Bean ;
7
+ import org .springframework .context .annotation .Configuration ;
8
+ import org .springframework .context .annotation .Primary ;
9
+
10
+ @ Configuration
11
+ public class ZuulConfig {
12
+
13
+ @ Bean ("zuul.CONFIGURATION_PROPERTIES" )
14
+ @ ConfigurationProperties ("zuul" )
15
+ @ RefreshScope
16
+ @ Primary
17
+ public ZuulProperties zuulProperties () {
18
+ return new ZuulProperties ();
19
+ }
20
+
21
+ }
You can’t perform that action at this time.
0 commit comments