Skip to content

Commit 2832d2f

Browse files
committed
去掉了不必要的类
1 parent 032a965 commit 2832d2f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

SpringBootDemo/src/main/java/com/xiaour/spring/boot/config/DataBaseConfiguration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ public class DataBaseConfiguration implements EnvironmentAware {
2323

2424
private static Logger log = LoggerFactory.getLogger(DataBaseConfiguration.class);
2525

26-
private Environment env;
2726

2827
/**
2928
* 初始化yml配置
3029
*/
3130
@Override
3231
public void setEnvironment(Environment env) {
33-
this.env = env;
3432
this.propertyResolver = new RelaxedPropertyResolver(env, "jdbc.datasource.");
3533
}
3634

0 commit comments

Comments
 (0)