File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
src/main/java/com/myapp/config Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 12
12
<parent >
13
13
<groupId >org.springframework.boot</groupId >
14
14
<artifactId >spring-boot-starter-parent</artifactId >
15
- <version >1.3.6 .RELEASE</version >
15
+ <version >1.4.0 .RELEASE</version >
16
16
<relativePath />
17
17
</parent >
18
18
53
53
</dependency >
54
54
<dependency >
55
55
<groupId >org.springframework.boot</groupId >
56
- <artifactId >spring-boot-starter-redis</artifactId >
56
+ <artifactId >spring-boot-starter-data- redis</artifactId >
57
57
</dependency >
58
58
<dependency >
59
59
<groupId >io.jsonwebtoken</groupId >
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ public class DatasourceConfig {
22
22
23
23
@ SuppressWarnings ("ContextJavaBeanUnresolvedMethodsInspection" )
24
24
@ Bean (destroyMethod = "close" )
25
- @ ConfigurationProperties (prefix = DataSourceProperties . PREFIX )
25
+ @ ConfigurationProperties (prefix = "spring.datasource" )
26
26
DataSource realDataSource () {
27
27
return DataSourceBuilder
28
28
.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 ())
32
32
.build ();
33
33
}
34
34
Original file line number Diff line number Diff line change 13
13
14
14
@ Configuration
15
15
@ Profile ({"stg" , "prod" })
16
- @ ConfigurationProperties (prefix = DataSourceProperties . PREFIX )
16
+ @ ConfigurationProperties (prefix = "spring.datasource" )
17
17
public class PooledDatasourceConfig extends HikariConfig {
18
18
19
19
@ Bean
You can’t perform that action at this time.
0 commit comments