Skip to content

Commit

Permalink
fix > issue alibaba#2277
Browse files Browse the repository at this point in the history
  • Loading branch information
lihengming committed Jan 22, 2018
1 parent b2864b6 commit 63ea9e8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.alibaba.druid.filter.stat.StatFilter;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.wall.WallFilter;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
Expand All @@ -49,9 +50,7 @@ public void afterPropertiesSet() throws Exception {
if (super.getUrl() == null) {
super.setUrl(basicProperties.determineUrl());
}
if (super.getDriverClassName() == null) {
super.setDriverClassName(basicProperties.determineDriverClassName());
}

}

@Autowired(required = false)
Expand Down

0 comments on commit 63ea9e8

Please sign in to comment.