Skip to content

Commit cb4470e

Browse files
committed
migration of modules:
spring-zuul spring-vertx spring-sleuth
1 parent dcc054d commit cb4470e

File tree

9 files changed

+31
-17
lines changed

9 files changed

+31
-17
lines changed

spring-remoting/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<packaging>pom</packaging>
88
<version>1.0-SNAPSHOT</version>
99
<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 -->
1112

1213
<parent>
1314
<artifactId>parent-boot-2</artifactId>
@@ -28,8 +29,8 @@
2829
</dependencyManagement>
2930

3031
<modules>
31-
<module>remoting-http</module>
3232
<module>remoting-hessian-burlap</module>
33+
<module>remoting-http</module>
3334
<module>remoting-amqp</module>
3435
<module>remoting-jms</module>
3536
<module>remoting-rmi</module>

spring-remoting/remoting-hessian-burlap/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
<artifactId>remoting-hessian-burlap</artifactId>
77
<packaging>pom</packaging>
88
<name>remoting-hessian-burlap</name>
9+
<version>1.0-SNAPSHOT</version>
910

1011
<parent>
11-
<artifactId>spring-remoting</artifactId>
12+
<artifactId>parent-boot-1</artifactId>
1213
<groupId>com.baeldung</groupId>
13-
<version>1.0-SNAPSHOT</version>
14+
<version>0.0.1-SNAPSHOT</version>
15+
<relativePath>../../parent-boot-1</relativePath>
1416
</parent>
1517

1618
<modules>

spring-zuul/pom.xml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
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"
23
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
4-
5+
56
<groupId>com.baeldung</groupId>
67
<artifactId>spring-zuul</artifactId>
78
<version>1.0.0-SNAPSHOT</version>
@@ -38,11 +39,22 @@
3839

3940
<properties>
4041
<!-- Spring -->
41-
<spring-cloud.version>1.2.7.RELEASE</spring-cloud.version>
42+
<spring-cloud.version>2.1.0.RC3</spring-cloud.version>
4243
<!-- util -->
4344
<commons-lang3.version>3.5</commons-lang3.version>
4445
<!-- Maven plugins -->
4546
<maven-war-plugin.version>2.6</maven-war-plugin.version>
4647
</properties>
4748

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+
4860
</project>

spring-zuul/spring-zuul-foos-resource/src/main/java/org/baeldung/config/ResourceServerApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5-
import org.springframework.boot.web.support.SpringBootServletInitializer;
5+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
66

77
@SpringBootApplication
88
public class ResourceServerApplication extends SpringBootServletInitializer {

spring-zuul/spring-zuul-foos-resource/src/main/java/org/baeldung/config/ResourceServerWebConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import org.springframework.context.annotation.ComponentScan;
44
import org.springframework.context.annotation.Configuration;
55
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;
77

88
@Configuration
99
@EnableWebMvc
1010
@ComponentScan({ "org.baeldung.web.controller" })
11-
public class ResourceServerWebConfig extends WebMvcConfigurerAdapter {
11+
public class ResourceServerWebConfig implements WebMvcConfigurer {
1212

1313
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
server.contextPath=/spring-zuul-foos-resource
2-
server.port=8081
1+
server.servlet.context-path=/spring-zuul-foos-resource
2+
server.port=8081

spring-zuul/spring-zuul-ui/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependencies>
1616
<dependency>
1717
<groupId>org.springframework.cloud</groupId>
18-
<artifactId>spring-cloud-starter-zuul</artifactId>
18+
<artifactId>spring-cloud-starter-netflix-zuul</artifactId>
1919
<version>${spring-cloud.version}</version>
2020
</dependency>
2121
<!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix-core</artifactId> <version>1.0.4.RELEASE</version> </dependency> -->

spring-zuul/spring-zuul-ui/src/main/java/org/baeldung/config/UiApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5-
import org.springframework.boot.web.support.SpringBootServletInitializer;
5+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
66
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
77

88
@EnableZuulProxy

spring-zuul/spring-zuul-ui/src/main/java/org/baeldung/config/UiWebConfig.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
88
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
99
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;
1111

1212
@Configuration
1313
@EnableWebMvc
14-
public class UiWebConfig extends WebMvcConfigurerAdapter {
14+
public class UiWebConfig implements WebMvcConfigurer {
1515

1616
@Bean
1717
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
@@ -25,7 +25,6 @@ public void configureDefaultServletHandling(final DefaultServletHandlerConfigure
2525

2626
@Override
2727
public void addViewControllers(final ViewControllerRegistry registry) {
28-
super.addViewControllers(registry);
2928
registry.addViewController("/").setViewName("forward:/index");
3029
registry.addViewController("/index");
3130
registry.addViewController("/login");

0 commit comments

Comments
 (0)