Skip to content

Commit 3071fe9

Browse files
committed
Upgrade spring boot to 1.4.0
1 parent 878d448 commit 3071fe9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>1.3.6.RELEASE</version>
15+
<version>1.4.0.RELEASE</version>
1616
<relativePath/>
1717
</parent>
1818

@@ -53,7 +53,7 @@
5353
</dependency>
5454
<dependency>
5555
<groupId>org.springframework.boot</groupId>
56-
<artifactId>spring-boot-starter-redis</artifactId>
56+
<artifactId>spring-boot-starter-data-redis</artifactId>
5757
</dependency>
5858
<dependency>
5959
<groupId>io.jsonwebtoken</groupId>

src/main/java/com/myapp/config/DatasourceConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ public class DatasourceConfig {
2222

2323
@SuppressWarnings("ContextJavaBeanUnresolvedMethodsInspection")
2424
@Bean(destroyMethod = "close")
25-
@ConfigurationProperties(prefix = DataSourceProperties.PREFIX)
25+
@ConfigurationProperties(prefix = "spring.datasource")
2626
DataSource realDataSource() {
2727
return DataSourceBuilder
2828
.create(this.dataSourceProperties.getClassLoader())
29-
.url(this.dataSourceProperties.getUrl())
30-
.username(this.dataSourceProperties.getUsername())
31-
.password(this.dataSourceProperties.getPassword())
29+
.url(this.dataSourceProperties.determineUrl())
30+
.username(this.dataSourceProperties.determineUsername())
31+
.password(this.dataSourceProperties.determineUsername())
3232
.build();
3333
}
3434

src/main/java/com/myapp/config/PooledDatasourceConfig.java

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

1414
@Configuration
1515
@Profile({"stg", "prod"})
16-
@ConfigurationProperties(prefix = DataSourceProperties.PREFIX)
16+
@ConfigurationProperties(prefix = "spring.datasource")
1717
public class PooledDatasourceConfig extends HikariConfig {
1818

1919
@Bean

0 commit comments

Comments
 (0)