File tree 9 files changed +31
-17
lines changed
spring-zuul-foos-resource/src/main
src/main/java/org/baeldung/config
9 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 7
7
<packaging >pom</packaging >
8
8
<version >1.0-SNAPSHOT</version >
9
9
<name >spring-remoting</name >
10
- <description >Parent for all projects related to Spring Remoting.</description >
10
+ <description >Parent for all projects related to Spring Remoting, except remoting-hessian-burlap</description >
11
+ <!-- remoting-hessian-burlap needs to stick to spring-boot-1, some classes were removed in spring 5 -->
11
12
12
13
<parent >
13
14
<artifactId >parent-boot-2</artifactId >
28
29
</dependencyManagement >
29
30
30
31
<modules >
31
- <module >remoting-http</module >
32
32
<module >remoting-hessian-burlap</module >
33
+ <module >remoting-http</module >
33
34
<module >remoting-amqp</module >
34
35
<module >remoting-jms</module >
35
36
<module >remoting-rmi</module >
Original file line number Diff line number Diff line change 6
6
<artifactId >remoting-hessian-burlap</artifactId >
7
7
<packaging >pom</packaging >
8
8
<name >remoting-hessian-burlap</name >
9
+ <version >1.0-SNAPSHOT</version >
9
10
10
11
<parent >
11
- <artifactId >spring-remoting </artifactId >
12
+ <artifactId >parent-boot-1 </artifactId >
12
13
<groupId >com.baeldung</groupId >
13
- <version >1.0-SNAPSHOT</version >
14
+ <version >0.0.1-SNAPSHOT</version >
15
+ <relativePath >../../parent-boot-1</relativePath >
14
16
</parent >
15
17
16
18
<modules >
Original file line number Diff line number Diff line change 1
- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
2
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
3
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
4
<modelVersion >4.0.0</modelVersion >
4
-
5
+
5
6
<groupId >com.baeldung</groupId >
6
7
<artifactId >spring-zuul</artifactId >
7
8
<version >1.0.0-SNAPSHOT</version >
38
39
39
40
<properties >
40
41
<!-- Spring -->
41
- <spring-cloud .version>1.2.7.RELEASE </spring-cloud .version>
42
+ <spring-cloud .version>2.1.0.RC3 </spring-cloud .version>
42
43
<!-- util -->
43
44
<commons-lang3 .version>3.5</commons-lang3 .version>
44
45
<!-- Maven plugins -->
45
46
<maven-war-plugin .version>2.6</maven-war-plugin .version>
46
47
</properties >
47
48
49
+ <repositories >
50
+ <repository >
51
+ <id >spring-milestones</id >
52
+ <name >Spring Milestones</name >
53
+ <url >http://repo.spring.io/milestone</url >
54
+ <snapshots >
55
+ <enabled >false</enabled >
56
+ </snapshots >
57
+ </repository >
58
+ </repositories >
59
+
48
60
</project >
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
- import org .springframework .boot .web .support .SpringBootServletInitializer ;
5
+ import org .springframework .boot .web .servlet . support .SpringBootServletInitializer ;
6
6
7
7
@ SpringBootApplication
8
8
public class ResourceServerApplication extends SpringBootServletInitializer {
Original file line number Diff line number Diff line change 3
3
import org .springframework .context .annotation .ComponentScan ;
4
4
import org .springframework .context .annotation .Configuration ;
5
5
import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
6
- import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
6
+ import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
7
7
8
8
@ Configuration
9
9
@ EnableWebMvc
10
10
@ ComponentScan ({ "org.baeldung.web.controller" })
11
- public class ResourceServerWebConfig extends WebMvcConfigurerAdapter {
11
+ public class ResourceServerWebConfig implements WebMvcConfigurer {
12
12
13
13
}
Original file line number Diff line number Diff line change 1
- server.contextPath =/spring-zuul-foos-resource
2
- server.port =8081
1
+ server.servlet.context-path =/spring-zuul-foos-resource
2
+ server.port =8081
Original file line number Diff line number Diff line change 15
15
<dependencies >
16
16
<dependency >
17
17
<groupId >org.springframework.cloud</groupId >
18
- <artifactId >spring-cloud-starter-zuul</artifactId >
18
+ <artifactId >spring-cloud-starter-netflix- zuul</artifactId >
19
19
<version >${spring-cloud.version} </version >
20
20
</dependency >
21
21
<!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix-core</artifactId> <version>1.0.4.RELEASE</version> </dependency> -->
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
- import org .springframework .boot .web .support .SpringBootServletInitializer ;
5
+ import org .springframework .boot .web .servlet . support .SpringBootServletInitializer ;
6
6
import org .springframework .cloud .netflix .zuul .EnableZuulProxy ;
7
7
8
8
@ EnableZuulProxy
Original file line number Diff line number Diff line change 7
7
import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
8
8
import org .springframework .web .servlet .config .annotation .ResourceHandlerRegistry ;
9
9
import org .springframework .web .servlet .config .annotation .ViewControllerRegistry ;
10
- import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
10
+ import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
11
11
12
12
@ Configuration
13
13
@ EnableWebMvc
14
- public class UiWebConfig extends WebMvcConfigurerAdapter {
14
+ public class UiWebConfig implements WebMvcConfigurer {
15
15
16
16
@ Bean
17
17
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer () {
@@ -25,7 +25,6 @@ public void configureDefaultServletHandling(final DefaultServletHandlerConfigure
25
25
26
26
@ Override
27
27
public void addViewControllers (final ViewControllerRegistry registry ) {
28
- super .addViewControllers (registry );
29
28
registry .addViewController ("/" ).setViewName ("forward:/index" );
30
29
registry .addViewController ("/index" );
31
30
registry .addViewController ("/login" );
You can’t perform that action at this time.
0 commit comments