Issue 6427 fix incompatible dependencies (#6428)

* fix 6427 - update Spring Boot to 2.1.3, update Spring Cloud to Greenwich.RELEASE

* cleanup: specify Thymeleaf namespace, `@ComponentScan` is redundant near `@SpringBootApplication`
This commit is contained in:
Paul 2019-02-27 20:54:22 +03:00 committed by maibin
parent b293765466
commit c575ba8d6f
5 changed files with 12 additions and 16 deletions

View File

@ -78,8 +78,6 @@
<rest-assured.version>3.1.0</rest-assured.version> <rest-assured.version>3.1.0</rest-assured.version>
<!-- plugins --> <!-- plugins -->
<thin.version>1.0.11.RELEASE</thin.version> <thin.version>1.0.11.RELEASE</thin.version>
<spring-boot.version>2.1.1.RELEASE</spring-boot.version> <spring-boot.version>2.1.3.RELEASE</spring-boot.version>
</properties> </properties>
</project> </project>

View File

@ -84,7 +84,7 @@
<id>openshift</id> <id>openshift</id>
<properties> <properties>
<spring-cloud-k8s.version>0.3.0.RELEASE</spring-cloud-k8s.version> <spring-cloud-k8s.version>0.3.0.RELEASE</spring-cloud-k8s.version>
<spring-cloud.version>Finchley.SR2</spring-cloud.version> <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
<fabric8.maven.plugin.version>3.5.37</fabric8.maven.plugin.version> <fabric8.maven.plugin.version>3.5.37</fabric8.maven.plugin.version>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
@ -166,7 +166,7 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId> <artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.SR1</version> <version>Greenwich.RELEASE</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
@ -214,7 +214,7 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId> <artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.SR1</version> <version>Greenwich.RELEASE</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>

View File

@ -4,12 +4,10 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@ServletComponentScan @ServletComponentScan
@SpringBootApplication @SpringBootApplication(scanBasePackages = "com.baeldung")
@ComponentScan("com.baeldung")
@EnableJpaRepositories("com.baeldung.persistence.repo") @EnableJpaRepositories("com.baeldung.persistence.repo")
@EntityScan("com.baeldung.persistence.model") @EntityScan("com.baeldung.persistence.model")
public class Application { public class Application {

View File

@ -1,18 +1,18 @@
<html lang="en"> <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head> <head>
<title>Error Occurred</title> <title>Error Occurred</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<h1>Error Occurred!</h1> <h1>Error Occurred!</h1>
<div class="alert alert-danger" role="alert"> <div class="alert alert-danger" role="alert">
<b> <b>
[<span th:text="${status}">status</span>] [<span th:text="${status}">status</span>]
<span th:text="${error}">error</span> <span th:text="${error}">error</span>
</b> </b>
<p th:text="${message}">message</p> <p th:text="${message}">message</p>
</div> </div>
</div> </div>
</body> </body>

View File

@ -1,4 +1,4 @@
<html> <html xmlns:th="http://www.w3.org/1999/xhtml" lang="en">
<head><title>Home Page</title></head> <head><title>Home Page</title></head>
<body> <body>
<h1>Hello !</h1> <h1>Hello !</h1>