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

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

View File

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

View File

@@ -1,7 +1,7 @@
<html>
<html xmlns:th="http://www.w3.org/1999/xhtml" lang="en">
<head><title>Home Page</title></head>
<body>
<h1>Hello !</h1>
<p>Welcome to <span th:text="${appName}">Our App</span></p>
</body>
</html>
</html>