mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-22 03:19:57 +08:00
Merge pull request #649 from bclozel:master
* pr/649: Upgrade to Spring Boot 2.0.1
This commit is contained in:
@@ -67,7 +67,7 @@ public class InitializrWebConfig implements WebMvcConfigurer {
|
|||||||
String path = urlPathHelper.getPathWithinApplication(
|
String path = urlPathHelper.getPathWithinApplication(
|
||||||
request.getNativeRequest(HttpServletRequest.class));
|
request.getNativeRequest(HttpServletRequest.class));
|
||||||
if (!StringUtils.hasText(path) || !path.equals("/")) { // Only care about "/"
|
if (!StringUtils.hasText(path) || !path.equals("/")) { // Only care about "/"
|
||||||
return Collections.emptyList();
|
return MEDIA_TYPE_ALL_LIST;
|
||||||
}
|
}
|
||||||
String userAgent = request.getHeader(HttpHeaders.USER_AGENT);
|
String userAgent = request.getHeader(HttpHeaders.USER_AGENT);
|
||||||
if (userAgent != null) {
|
if (userAgent != null) {
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<spring.boot.version>2.0.0.RELEASE</spring.boot.version>
|
<spring.boot.version>2.0.1.RELEASE</spring.boot.version>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user