We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 032a965 commit 2832d2fCopy full SHA for 2832d2f
SpringBootDemo/src/main/java/com/xiaour/spring/boot/config/DataBaseConfiguration.java
@@ -23,14 +23,12 @@ public class DataBaseConfiguration implements EnvironmentAware {
23
24
private static Logger log = LoggerFactory.getLogger(DataBaseConfiguration.class);
25
26
- private Environment env;
27
28
/**
29
* 初始化yml配置
30
*/
31
@Override
32
public void setEnvironment(Environment env) {
33
- this.env = env;
34
this.propertyResolver = new RelaxedPropertyResolver(env, "jdbc.datasource.");
35
}
36
0 commit comments