mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-05 17:38:06 +08:00
Upgrade to Spring Boot 2.0.1
Note that the custom `CommandLineContentNegotiationStrategy` has been adapted to the changes in the `ContentNegotiationStrategy` contract done in https://jira.spring.io/browse/SPR-16624. Closes gh-648
This commit is contained in:
parent
30d41d2e86
commit
9d62d5cff3
@ -67,7 +67,7 @@ public class InitializrWebConfig implements WebMvcConfigurer {
|
||||
String path = urlPathHelper.getPathWithinApplication(
|
||||
request.getNativeRequest(HttpServletRequest.class));
|
||||
if (!StringUtils.hasText(path) || !path.equals("/")) { // Only care about "/"
|
||||
return Collections.emptyList();
|
||||
return MEDIA_TYPE_ALL_LIST;
|
||||
}
|
||||
String userAgent = request.getHeader(HttpHeaders.USER_AGENT);
|
||||
if (userAgent != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user