Skip to content

Commit e1cedc8

Browse files
committed
pom.xml: update Spring Boot to 1.4.1.RELEASE.
@see https://spring.io/blog/2016/02/26/spring-boot-1-3-3-and-1-4-0-m1-available-now @see https://spring.io/blog/2016/04/13/spring-boot-1-4-0-m2-available-now @see https://spring.io/blog/2016/05/17/spring-boot-1-4-0-m3-available-now @see https://spring.io/blog/2016/07/05/spring-boot-1-4-0-rc1-available-now @see https://spring.io/blog/2016/07/28/spring-boot-1-4-released @see https://spring.io/blog/2016/09/21/spring-boot-1-4-1-and-1-3-8-available-now @see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes @see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Configuration-Changelog This also updates: * Spring Framework to 4.3.3.RELEASE - https://spring.io/blog/2016/04/06/spring-framework-4-3-goes-rc1 - https://spring.io/blog/2016/05/06/spring-framework-4-3-rc2-4-2-6-and-3-2-17-available-now - https://spring.io/blog/2016/06/10/spring-framework-4-3-goes-ga - https://spring.io/blog/2016/07/04/spring-framework-4-3-1-and-4-2-7-available-now - https://spring.io/blog/2016/09/19/spring-framework-4-3-3-and-4-2-8-available-now * Spring Security to 4.1.3.RELEASE - https://spring.io/blog/2016/03/24/spring-security-4-1-0-rc1-released - https://spring.io/blog/2016/04/21/spring-security-4-1-0-rc2-released - https://spring.io/blog/2016/05/05/spring-security-4-1-0-released - https://spring.io/blog/2016/07/07/spring-security-4-1-1-released - https://spring.io/blog/2016/08/12/spring-security-4-1-2-released - https://spring.io/blog/2016/08/24/spring-security-4-1-3-released No functional changes.
1 parent fc72d3b commit e1cedc8

File tree

6 files changed

+49
-38
lines changed

6 files changed

+49
-38
lines changed

pom.xml

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<version>${slf4j.version}</version>
4141
</dependency>
4242

43-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter/pom.xml -->
43+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter/pom.xml -->
4444
<dependency>
4545
<groupId>org.springframework.boot</groupId>
4646
<artifactId>spring-boot-starter</artifactId>
@@ -52,7 +52,7 @@
5252
</exclusions>
5353
</dependency>
5454

55-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-jdbc/pom.xml -->
55+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-jdbc/pom.xml -->
5656
<dependency>
5757
<groupId>org.springframework.boot</groupId>
5858
<artifactId>spring-boot-starter-jdbc</artifactId>
@@ -64,7 +64,7 @@
6464
</exclusions>
6565
</dependency>
6666

67-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-jetty/pom.xml -->
67+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-jetty/pom.xml -->
6868
<dependency>
6969
<groupId>org.springframework.boot</groupId>
7070
<artifactId>spring-boot-starter-jetty</artifactId>
@@ -80,25 +80,25 @@
8080
</exclusions>
8181
</dependency>
8282

83-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-logging/pom.xml -->
83+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-logging/pom.xml -->
8484
<dependency>
8585
<groupId>org.springframework.boot</groupId>
8686
<artifactId>spring-boot-starter-logging</artifactId>
8787
</dependency>
8888

89-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-mail/pom.xml -->
89+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-mail/pom.xml -->
9090
<dependency>
9191
<groupId>org.springframework.boot</groupId>
9292
<artifactId>spring-boot-starter-mail</artifactId>
9393
</dependency>
9494

95-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-security/pom.xml -->
95+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-security/pom.xml -->
9696
<dependency>
9797
<groupId>org.springframework.boot</groupId>
9898
<artifactId>spring-boot-starter-security</artifactId>
9999
</dependency>
100100

101-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-thymeleaf/pom.xml -->
101+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-thymeleaf/pom.xml -->
102102
<dependency>
103103
<groupId>org.springframework.boot</groupId>
104104
<artifactId>spring-boot-starter-thymeleaf</artifactId>
@@ -110,13 +110,13 @@
110110
</exclusions>
111111
</dependency>
112112

113-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-validation/pom.xml -->
113+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-validation/pom.xml -->
114114
<dependency>
115115
<groupId>org.springframework.boot</groupId>
116116
<artifactId>spring-boot-starter-validation</artifactId>
117117
</dependency>
118118

119-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-web/pom.xml -->
119+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-web/pom.xml -->
120120
<dependency>
121121
<groupId>org.springframework.boot</groupId>
122122
<artifactId>spring-boot-starter-web</artifactId>
@@ -308,6 +308,16 @@
308308
<scope>test</scope>
309309
</dependency>
310310

311+
<!--
312+
For ConfigFileApplicationContextInitializer class.
313+
https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-test/pom.xml
314+
-->
315+
<dependency>
316+
<groupId>org.springframework.boot</groupId>
317+
<artifactId>spring-boot-test</artifactId>
318+
<scope>test</scope>
319+
</dependency>
320+
311321
<dependency>
312322
<groupId>org.subethamail</groupId>
313323
<artifactId>subethasmtp</artifactId>
@@ -332,10 +342,10 @@
332342
</dependencies>
333343

334344
<parent>
335-
<!-- https://github.com/spring-projects/spring-boot/blob/v1.3.7.RELEASE/spring-boot-starters/spring-boot-starter-parent/pom.xml -->
345+
<!-- https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-parent/pom.xml -->
336346
<groupId>org.springframework.boot</groupId>
337347
<artifactId>spring-boot-starter-parent</artifactId>
338-
<version>1.3.7.RELEASE</version>
348+
<version>1.4.1.RELEASE</version>
339349
</parent>
340350

341351
<properties>
@@ -346,10 +356,10 @@
346356
<checkstyle.plugin.version>2.17</checkstyle.plugin.version>
347357
<clean.plugin.version>3.0.0</clean.plugin.version>
348358

349-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
359+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
350360
<commons-dbcp.version>1.4</commons-dbcp.version>
351361

352-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
362+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
353363
<commons-pool.version>1.5.4</commons-pool.version>
354364

355365
<commons.lang.version>3.4</commons.lang.version>
@@ -361,43 +371,43 @@
361371
<gmaven.plugin.version>1.4</gmaven.plugin.version>
362372
<gmaven.runtime.plugin.version>1.5</gmaven.runtime.plugin.version>
363373

364-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
374+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
365375
<groovy.version>2.0.8</groovy.version>
366376

367-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
377+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
368378
<h2.version>1.4.192</h2.version>
369379

370-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
380+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
371381
<hibernate-validator.version>5.2.4.Final</hibernate-validator.version>
372382

373383
<jacoco.plugin.version>0.7.7.201606060606</jacoco.plugin.version>
374384
<jasmine.plugin.version>2.2</jasmine.plugin.version>
375385

376-
<!-- Redefine default value from spring-boot-starter-parent (https://git.io/vKAiy) -->
386+
<!-- Redefine default value from spring-boot-starter-parent (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-parent/pom.xml) -->
377387
<java.version>1.8</java.version>
378388

379389
<javadoc.plugin.version>2.10.4</javadoc.plugin.version>
380390

381-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
391+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
382392
<javax-mail.version>1.5.4</javax-mail.version>
383393

384394
<javax.validation.version>1.1.0.Final</javax.validation.version>
385395

386-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
396+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
387397
<jetty.version>9.2.18.v20160721</jetty.version>
388398

389399
<!-- Don't forget to update version in the Url class -->
390400
<jquery.version>1.9.1</jquery.version>
391401

392402
<license.plugin.version>1.9.0</license.plugin.version>
393403

394-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
404+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
395405
<liquibase.version>3.5.1</liquibase.version>
396406

397407
<lombok.version>1.16.10</lombok.version>
398408
<minify.plugin.version>1.7.4</minify.plugin.version>
399409

400-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
410+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
401411
<mysql.version>5.1.39</mysql.version>
402412

403413
<native2ascii.plugin.version>1.0-beta-1</native2ascii.plugin.version>
@@ -410,32 +420,32 @@
410420
<selenium.htmlunit.version>2.21</selenium.htmlunit.version>
411421
<selenium.version>2.53.1</selenium.version>
412422

413-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
423+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
414424
<servlet-api.version>3.1.0</servlet-api.version>
415425

416426
<skipUnitTests>false</skipUnitTests>
417427

418-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
428+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
419429
<slf4j.version>1.7.21</slf4j.version>
420430

421431
<sortpom.plugin.version>2.5.0</sortpom.plugin.version>
422432

423-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
433+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
424434
<spock.version>1.0-groovy-2.0</spock.version>
425435

426-
<!-- Define default value for spring-boot-starter-parent (https://git.io/vKAiy) -->
436+
<!-- Define default value for spring-boot-starter-parent (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-starters/spring-boot-starter-parent/pom.xml) -->
427437
<start-class>ru.mystamps.web.support.spring.boot.ApplicationBootstrap</start-class>
428438

429439
<subethasmtp.version>3.1.7</subethasmtp.version>
430440
<surefire.plugin.version>2.19.1</surefire.plugin.version>
431441
<testng.version>6.8.8</testng.version>
432442

433-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
443+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
434444
<thymeleaf-extras-springsecurity4.version>2.1.2.RELEASE</thymeleaf-extras-springsecurity4.version>
435445

436446
<thymeleaf.togglz.version>1.1.0.RELEASE</thymeleaf.togglz.version>
437447

438-
<!-- Redefine default value from spring-boot-dependencies (https://git.io/vKAiK) -->
448+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml) -->
439449
<thymeleaf.version>2.1.5.RELEASE</thymeleaf.version>
440450

441451
<togglz.version>2.3.0.Final</togglz.version>

src/main/java/ru/mystamps/web/service/FilesystemImagePersistenceStrategy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ protected Path createFile(ImageInfoDto image) {
9999
// protected to allow spying
100100
protected void writeToFile(MultipartFile file, Path dest) throws IOException {
101101
// we can't use file.transferTo(dest) there because it creates file
102-
// relatively to directory from multipart.location in application.properties
102+
// relatively to directory from spring.http.multipart.location
103+
// in application.properties
103104
// See for details: https://jira.spring.io/browse/SPR-12650
104105
Files.copy(file.getInputStream(), dest);
105106
}

src/main/resources/application-travis.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ spring.datasource.username: travis
55
spring.datasource.password:
66
spring.datasource.driver-class-name: com.mysql.jdbc.Driver
77
spring.datasource.initialize: false
8-
spring.datasource.validation-query: SELECT 1
9-
spring.datasource.test-on-borrow: true
8+
spring.datasource.dbcp.validation-query: SELECT 1
9+
spring.datasource.dbcp.test-on-borrow: true
1010

1111
spring.mail.host: 127.0.0.1
1212
spring.mail.port: 1025

src/main/resources/application.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ spring.mvc.favicon.enabled: false
1212

1313
spring.cache.type: none
1414

15-
# See for details: http://docs.spring.io/autorepo/docs/spring-boot/current/api/org/springframework/boot/autoconfigure/web/MultipartProperties.html
16-
multipart.location: /tmp
17-
multipart.max-request-size: 10Mb
18-
multipart.max-file-size: 5Mb
19-
multipart.file-size-threshold: 1Mb
15+
# See for details: http://docs.spring.io/autorepo/docs/spring-boot/1.4.1.RELEASE/api/org/springframework/boot/autoconfigure/web/MultipartProperties.html
16+
spring.http.multipart.location: /tmp
17+
spring.http.multipart.max-request-size: 10Mb
18+
spring.http.multipart.max-file-size: 5Mb
19+
spring.http.multipart.file-size-threshold: 1Mb
2020

2121
server.session.cookie.http-only: true
2222

src/test/resources/logback-test.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!--
55
See for details:
6-
http://docs.spring.io/spring-boot/docs/1.3.7.RELEASE/reference/html/howto-logging.html#howto-configure-logback-for-logging
6+
http://docs.spring.io/spring-boot/docs/1.4.x/reference/html/howto-logging.html#howto-configure-logback-for-logging
77
-->
88
<include resource="org/springframework/boot/logging/logback/base.xml"/>
99

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ spring.datasource.username: mystamps
55
spring.datasource.password: {{ user_db_password }}
66
spring.datasource.driver-class-name: com.mysql.jdbc.Driver
77
spring.datasource.initialize: false
8-
spring.datasource.validation-query: SELECT 1
9-
spring.datasource.test-on-borrow: true
8+
spring.datasource.dbcp.validation-query: SELECT 1
9+
spring.datasource.dbcp.test-on-borrow: true
1010

1111
spring.mail.host: smtp.mailgun.org
1212
spring.mail.port: 25

0 commit comments

Comments
 (0)