Skip to content

Commit e9eb623

Browse files
committed
build: update Spring Boot to 2.1.18
This also updates Spring Framework to 5.1.20 and Spring Security to 5.1.13 Notes: - in order to use old Groovy version, I've introduced the "groovy-old.version" property. Redefining "groovy.version" doesn't work anymore, as Spring Boot has a dependency on org.codehaus.groovy:groovy-bom that doesn't exist for old versions - Spring Framework version has been redefined and updated to the latest version available. This only needed because we use End-Of-Life version of Spring Boot. It won't be needed on newer versions. Changelogs: * Spring Boot - https://spring.io/blog/2018/07/30/spring-boot-2-1-m1 - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M1-Release-Notes - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M1-Configuration-Changelog - https://spring.io/blog/2018/08/21/spring-boot-2-1-m2-available-now - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M2-Release-Notes - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M2-Configuration-Changelog - https://spring.io/blog/2018/09/13/spring-boot-2-1-m3-available-now - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M3-Release-Notes - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M3-Configuration-Changelog - https://spring.io/blog/2018/09/25/spring-boot-2-1-m4-available-now - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M4-Release-Notes - https://spring.io/blog/2018/10/17/spring-boot-2-1-0-rc1-available-now - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-RC1-Release-Notes - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-RC1-Configuration-Changelog - https://spring.io/blog/2018/10/30/spring-boot-2-1-0 - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1-Release-Notes - https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-Configuration-Changelog - https://spring.io/blog/2018/11/30/spring-boot-2-1-1-available-now - https://spring.io/blog/2019/01/12/spring-boot-2-1-2-released - https://spring.io/blog/2019/02/15/spring-boot-2-1-3-available-now - https://spring.io/blog/2019/04/04/spring-boot-2-1-4-released - https://spring.io/blog/2019/05/15/spring-boot-2-1-5-released - https://spring.io/blog/2019/06/19/spring-boot-2-1-6-released - https://spring.io/blog/2019/08/06/spring-boot-2-1-7-available-now - https://spring.io/blog/2019/09/06/spring-boot-2-1-8-available-now - https://spring.io/blog/2019/10/02/spring-boot-2-1-9-available-now - https://spring.io/blog/2019/11/06/spring-boot-2-1-10-available-now - https://spring.io/blog/2019/12/06/spring-boot-2-1-11-is-now-available - https://spring.io/blog/2020/01/16/spring-boot-2-1-12-released - https://spring.io/blog/2020/02/27/spring-boot-2-1-13-released - https://spring.io/blog/2020/05/07/spring-boot-2-1-14-available-now - https://spring.io/blog/2020/06/11/spring-boot-2-1-15-available-now - https://spring.io/blog/2020/07/24/spring-boot-2-1-16-available-now - https://spring.io/blog/2020/09/17/spring-boot-2-1-17-available-now - https://spring.io/blog/2020/10/29/spring-boot-2-1-18-available-now * Spring Framework - https://spring.io/blog/2018/07/26/spring-framework-5-1-goes-rc1 - https://spring.io/blog/2018/08/17/spring-framework-5-1-rc2-available-now - https://spring.io/blog/2018/09/07/spring-framework-5-1-rc3-5-0-9-and-4-3-19-available-now - https://spring.io/blog/2018/09/21/spring-framework-5-1-goes-ga - https://github.com/spring-projects/spring-framework/wiki/What's-New-in-Spring-Framework-5.x#whats-new-in-version-51 - https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x#upgrading-to-version-51 - https://spring.io/blog/2018/10/15/spring-framework-5-1-1-5-0-10-and-4-3-20-available-now - https://spring.io/blog/2018/10/29/spring-framework-5-1-2-available-now - https://spring.io/blog/2018/11/27/spring-framework-5-1-3-5-0-11-and-4-3-21-available-now - https://spring.io/blog/2019/01/09/spring-framework-5-1-4-5-0-12-and-4-3-22-available-now - https://spring.io/blog/2019/02/13/spring-framework-5-1-5-available-now - https://spring.io/blog/2019/04/01/spring-framework-5-1-6-5-0-13-and-4-3-23-available-now - https://spring.io/blog/2019/05/10/spring-framework-5-2-0-m2-5-1-7-5-0-14-and-4-3-24-available-now - https://spring.io/blog/2019/06/13/spring-framework-5-2-0-m3-and-5-1-8-available-now - https://spring.io/blog/2019/08/02/spring-framework-5-1-9-5-0-15-and-4-3-25-available-now - https://spring.io/blog/2019/09/28/spring-framework-5-1-10-available-now - https://spring.io/blog/2019/11/04/spring-framework-5-2-1-and-5-1-11-available-now - https://spring.io/blog/2019/12/03/spring-framework-5-2-2-and-5-1-12-available-now - https://spring.io/blog/2020/01/16/spring-framework-5-2-3-5-1-13-5-0-16-and-4-3-26-releases - https://spring.io/blog/2020/02/25/spring-framework-5-2-4-and-5-1-14-available-now - https://spring.io/blog/2020/04/28/spring-framework-5-2-6-5-1-15-5-0-17-and-4-3-27-available-now - https://spring.io/blog/2020/06/09/spring-framework-5-2-7-and-5-1-16-available-now - https://spring.io/blog/2020/07/21/spring-framework-5-2-8-5-1-17-5-0-18-and-4-3-28-available-now - https://spring.io/blog/2020/09/15/spring-framework-5-2-9-5-1-18-5-0-19-and-4-3-29-available-now - https://spring.io/blog/2020/10/27/spring-framework-5-2-10-and-5-1-19-available-now - https://spring.io/blog/2020/12/09/spring-framework-5-3-2-5-2-12-5-1-20-5-0-20-and-4-3-30-available-now * Spring Security - https://spring.io/blog/2018/05/15/spring-security-5-1-0-m1-released - https://spring.io/blog/2018/07/30/spring-security-5-1-0-m2-released - https://spring.io/blog/2018/08/21/spring-security-5-1-0-rc1-released - https://spring.io/blog/2018/09/10/spring-security-5-1-0-rc2-released - https://spring.io/blog/2018/09/27/spring-security-5-1-goes-ga - https://docs.spring.io/spring-security/site/docs/5.1.x/reference/htmlsingle/#new - https://spring.io/blog/2018/10/16/spring-security-5-1-1-5-0-9-and-4-2-9-released - https://spring.io/blog/2018/11/29/spring-security-5-1-2-5-0-10-4-2-10-released - https://spring.io/blog/2019/01/11/spring-security-5-1-3-5-0-11-4-2-11-released - https://spring.io/blog/2019/02/14/spring-security-5-1-4-released - https://spring.io/blog/2019/04/03/spring-security-5-1-5-5-0-12-4-2-12-released - https://spring.io/blog/2019/04/05/cve-2019-3795-spring-security-4-2-12-5-0-12-5-1-5-released - https://spring.io/blog/2019/08/05/spring-security-5-1-6-and-5-0-13-released - https://spring.io/blog/2019/11/04/spring-security-5-2-1-and-5-1-7-released - https://spring.io/blog/2020/02/05/spring-security-5-2-2-5-1-8-and-5-0-14-released - https://spring.io/blog/2020/04/02/spring-security-5-3-1-5-2-3-5-1-9-5-0-15-4-2-15-released - https://spring.io/blog/2020/05/07/spring-security-5-3-2-5-2-4-5-1-10-5-0-16-4-2-16-released - https://spring.io/blog/2020/05/13/cve-reports-published-for-spring-security - https://spring.io/blog/2020/06/03/spring-security-5-3-3-5-2-5-5-1-11-5-0-17-4-2-17-released - https://spring.io/blog/2020/08/12/spring-security-5-3-4-5-2-6-5-1-12-5-0-18-4-2-18-released - https://spring.io/blog/2020/10/08/spring-security-5-4-1-5-3-5-5-2-7-5-1-13-5-0-19-4-2-19-released Fix #1161
1 parent ad53df6 commit e9eb623

File tree

11 files changed

+45
-32
lines changed

11 files changed

+45
-32
lines changed

infra/vagrant/provisioning/roles/mystamps-app/templates/application-prod.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ app.use-cdn: true
4343
server.servlet.session.cookie.secure: true
4444

4545
# Full list of autoconfiguration classes:
46-
# https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/auto-configuration-classes.html
46+
# https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/auto-configuration-classes.html
4747
# The difference between test profile is that we don't need
4848
# SpringApplicationAdminJmxAutoConfiguration and H2ConsoleAutoConfiguration
4949
spring.autoconfigure.exclude: \

pom.xml

+19-16
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<version>${slf4j.version}</version>
6767
</dependency>
6868

69-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter/pom.xml -->
69+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter/pom.xml -->
7070
<dependency>
7171
<groupId>org.springframework.boot</groupId>
7272
<artifactId>spring-boot-starter</artifactId>
@@ -78,13 +78,13 @@
7878
</exclusions>
7979
</dependency>
8080

81-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-jdbc/pom.xml -->
81+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-jdbc/pom.xml -->
8282
<dependency>
8383
<groupId>org.springframework.boot</groupId>
8484
<artifactId>spring-boot-starter-jdbc</artifactId>
8585
</dependency>
8686

87-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-jetty/pom.xml -->
87+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-jetty/pom.xml -->
8888
<dependency>
8989
<groupId>org.springframework.boot</groupId>
9090
<artifactId>spring-boot-starter-jetty</artifactId>
@@ -104,19 +104,19 @@
104104
</exclusions>
105105
</dependency>
106106

107-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-logging/pom.xml -->
107+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-logging/pom.xml -->
108108
<dependency>
109109
<groupId>org.springframework.boot</groupId>
110110
<artifactId>spring-boot-starter-logging</artifactId>
111111
</dependency>
112112

113-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-security/pom.xml -->
113+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-security/pom.xml -->
114114
<dependency>
115115
<groupId>org.springframework.boot</groupId>
116116
<artifactId>spring-boot-starter-security</artifactId>
117117
</dependency>
118118

119-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-thymeleaf/pom.xml -->
119+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-thymeleaf/pom.xml -->
120120
<dependency>
121121
<groupId>org.springframework.boot</groupId>
122122
<artifactId>spring-boot-starter-thymeleaf</artifactId>
@@ -128,7 +128,7 @@
128128
</exclusions>
129129
</dependency>
130130

131-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml -->
131+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml -->
132132
<dependency>
133133
<groupId>org.springframework.boot</groupId>
134134
<artifactId>spring-boot-starter-web</artifactId>
@@ -413,7 +413,7 @@
413413
<dependency>
414414
<groupId>org.codehaus.groovy</groupId>
415415
<artifactId>groovy-all</artifactId>
416-
<version>${groovy.version}</version>
416+
<version>${groovy-old.version}</version>
417417
<scope>test</scope>
418418
</dependency>
419419

@@ -451,7 +451,7 @@
451451
<scope>test</scope>
452452
</dependency>
453453

454-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-test/pom.xml -->
454+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-test/pom.xml -->
455455
<dependency>
456456
<groupId>org.springframework.boot</groupId>
457457
<artifactId>spring-boot-starter-test</artifactId>
@@ -496,16 +496,16 @@
496496

497497
</dependencies>
498498

499-
<!-- https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/pom.xml -->
499+
<!-- https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/pom.xml -->
500500
<parent>
501501
<groupId>org.springframework.boot</groupId>
502502
<artifactId>spring-boot-starter-parent</artifactId>
503-
<version>2.0.9.RELEASE</version>
503+
<version>2.1.18.RELEASE</version>
504504
</parent>
505505

506506
<!--
507507
All default versions from Spring Boot can be found there:
508-
https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-dependencies/pom.xml
508+
https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-dependencies/pom.xml
509509
-->
510510
<properties>
511511
<!--
@@ -549,8 +549,7 @@
549549
<frontend.plugin.version>1.7.6</frontend.plugin.version>
550550
<gmavenplus.plugin.version>1.5</gmavenplus.plugin.version>
551551

552-
<!-- Redefine default value from spring-boot-dependencies -->
553-
<groovy.version>2.0.8</groovy.version>
552+
<groovy-old.version>2.0.8</groovy-old.version>
554553

555554
<!-- Redefine default value from spring-boot-dependencies -->
556555
<h2.version>1.4.200</h2.version>
@@ -569,7 +568,7 @@
569568

570569
<!--
571570
Redefine default value from spring-boot-starter-parent:
572-
https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/pom.xml
571+
https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/pom.xml
573572
-->
574573
<java.version>1.8</java.version>
575574

@@ -644,9 +643,13 @@
644643
<spock.version>1.0-groovy-2.0</spock.version>
645644
<spotbugs.plugin.version>3.1.11</spotbugs.plugin.version>
646645

646+
<!-- Redefine default value from spring-boot-dependencies in order to have the latest version -->
647+
<!-- LATER: remove overriding once version from Spring Boot will match the used one -->
648+
<spring-framework.version>5.1.20.RELEASE</spring-framework.version>
649+
647650
<!--
648651
Define default value for spring-boot-starter-parent:
649-
https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/pom.xml
652+
https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-parent/pom.xml
650653
-->
651654
<start-class>ru.mystamps.web.support.spring.boot.ApplicationBootstrap</start-class>
652655

src/main/java/ru/mystamps/web/feature/site/SiteConfig.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.springframework.context.annotation.Bean;
2525
import org.springframework.context.annotation.Configuration;
2626
import org.springframework.core.env.Environment;
27+
import org.springframework.core.env.Profiles;
2728
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
2829
import ru.mystamps.web.feature.account.UserService;
2930
import ru.mystamps.web.feature.account.UsersActivationService;
@@ -124,7 +125,8 @@ public CronService cronService(
124125

125126
@Bean
126127
public MailService mailService() {
127-
boolean isProductionEnvironment = env.acceptsProfiles("prod");
128+
Profiles prod = Profiles.of("prod");
129+
boolean isProductionEnvironment = env.acceptsProfiles(prod);
128130
boolean enableTestMode = !isProductionEnvironment;
129131

130132
String user = "api";

src/main/java/ru/mystamps/web/support/mailgun/ApiMailgunEmailSendingStrategy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public ApiMailgunEmailSendingStrategy(
5959
this.endpoint = endpoint;
6060

6161
this.restTemplate = restTemplateBuilder
62-
.basicAuthorization(user, password)
62+
.basicAuthentication(user, password)
6363
.build();
6464
}
6565

src/main/java/ru/mystamps/web/support/spring/boot/ThymeleafViewResolverInitializingBean.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.springframework.context.EnvironmentAware;
2727
import org.springframework.context.annotation.Configuration;
2828
import org.springframework.core.env.Environment;
29+
import org.springframework.core.env.Profiles;
2930
import org.thymeleaf.spring5.view.ThymeleafViewResolver;
3031
import ru.mystamps.web.feature.account.AccountUrl;
3132
import ru.mystamps.web.feature.category.CategoryUrl;
@@ -72,7 +73,8 @@ public void afterPropertiesSet() throws Exception {
7273
return;
7374
}
7475

75-
boolean productionEnv = environment.acceptsProfiles("prod");
76+
Profiles prod = Profiles.of("prod");
77+
boolean productionEnv = environment.acceptsProfiles(prod);
7678
boolean useCdn = environment.getProperty("app.use-cdn", Boolean.class, Boolean.TRUE);
7779
viewResolver.setStaticVariables(resourcesAsMap(productionEnv, useCdn));
7880
}

src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.springframework.context.annotation.Lazy;
2929
import org.springframework.core.Ordered;
3030
import org.springframework.core.env.Environment;
31+
import org.springframework.core.env.Profiles;
3132
import org.springframework.http.HttpMethod;
3233
import org.springframework.security.authentication.AuthenticationProvider;
3334
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
@@ -85,11 +86,12 @@ public void configure(WebSecurity web) throws Exception {
8586
@Override
8687
@SuppressWarnings({ "PMD.SignatureDeclareThrowsException", "checkstyle:linelength" })
8788
protected void configure(HttpSecurity http) throws Exception {
88-
boolean useSingleHost = !environment.acceptsProfiles("prod");
89+
Profiles prod = Profiles.of("prod");
90+
boolean useSingleHost = !environment.acceptsProfiles(prod);
8991
boolean useCdn = environment.getProperty("app.use-cdn", Boolean.class, Boolean.TRUE);
9092

9193
// @todo #226 Introduce app.use-public-hostname property
92-
boolean usePublicHostname = environment.acceptsProfiles("prod");
94+
boolean usePublicHostname = environment.acceptsProfiles(prod);
9395
String hostname = usePublicHostname ? SiteUrl.PUBLIC_URL : SiteUrl.SITE;
9496

9597
String h2ConsolePath = h2ConsoleProperties == null ? null : h2ConsoleProperties.getPath();
@@ -160,6 +162,7 @@ protected void configure(HttpSecurity http) throws Exception {
160162
.disable()
161163
.headers()
162164
.defaultsDisabled() // FIXME
165+
// @todo #1161 Add Feature-Policy header
163166
.addHeaderWriter(cspWriter);
164167
}
165168

src/main/resources/application-postgres.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ app.use-cdn: false
4141
# @todo #1054 Extract list of exclusions to a common profile
4242
#
4343
# Full list of autoconfiguration classes:
44-
# https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/auto-configuration-classes.html
44+
# https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/auto-configuration-classes.html
4545
# The difference between test profile is that we don't need H2ConsoleAutoConfiguration
4646
spring.autoconfigure.exclude: \
4747
org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration \

src/main/resources/application-test.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappi
4747
app.use-cdn: false
4848

4949
# Full list of autoconfiguration classes:
50-
# https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/auto-configuration-classes.html
50+
# https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/auto-configuration-classes.html
5151
spring.autoconfigure.exclude: \
5252
org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration \
5353
, org.springframework.boot.autoconfigure.aop.AopAutoConfiguration \

src/main/resources/application-travis.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ app.preview.dir: /tmp/preview
3737
app.use-cdn: false
3838

3939
# Full list of autoconfiguration classes:
40-
# https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/auto-configuration-classes.html
40+
# https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/auto-configuration-classes.html
4141
# The difference between test profile is that we don't need H2ConsoleAutoConfiguration
4242
spring.autoconfigure.exclude: \
4343
org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration \

src/main/resources/application.properties

+8-5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ trace: false
88

99
spring.main.banner-mode: off
1010

11+
# Required for overriding RequestContextFilter (see SecurityConfig.getOrderedRequestContextFilter())
12+
spring.main.allow-bean-definition-overriding: true
13+
1114
# In favour of our own mappings, see ru.mystamps.web.config.MvcConfig.addResourceHandlers()
1215
spring.resources.add-mappings: false
1316

@@ -16,11 +19,11 @@ spring.mvc.favicon.enabled: false
1619
spring.cache.type: none
1720

1821
# See for details:
19-
# https://docs.spring.io/autorepo/docs/spring-boot/2.0.x/api/org/springframework/boot/autoconfigure/web/servlet/MultipartProperties.html
22+
# https://docs.spring.io/spring-boot/docs/2.1.x/api/org/springframework/boot/autoconfigure/web/servlet/MultipartProperties.html
2023
spring.servlet.multipart.location: /tmp
21-
spring.servlet.multipart.max-request-size: 10Mb
22-
spring.servlet.multipart.max-file-size: 5Mb
23-
spring.servlet.multipart.file-size-threshold: 1Mb
24+
spring.servlet.multipart.max-request-size: 10MB
25+
spring.servlet.multipart.max-file-size: 5MB
26+
spring.servlet.multipart.file-size-threshold: 1MB
2427

2528
spring.jackson.default-property-inclusion: NON_NULL
2629

@@ -36,7 +39,7 @@ server.compression.enabled: true
3639
server.compression.min-response-size: 512
3740

3841
# See for details:
39-
# https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/boot-features-logging.html#boot-features-custom-log-configuration
42+
# https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/boot-features-logging.html#boot-features-custom-log-configuration
4043
# https://logback.qos.ch/manual/layouts.html
4144
logging.pattern.level: [user:%-2X{userId}] %5p
4245

src/test/resources/logback-test.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
<!--
55
See for details:
6-
https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/howto-logging.html#howto-configure-logback-for-logging
7-
https://github.com/spring-projects/spring-boot/blob/v2.0.9.RELEASE/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/base.xml
6+
https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/howto-logging.html#howto-configure-logback-for-logging
7+
https://github.com/spring-projects/spring-boot/blob/v2.1.18.RELEASE/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/base.xml
88
-->
99

1010
<!--

0 commit comments

Comments
 (0)