是新版本改了:
In latest springframework, this org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder has been moved to org.springframework.boot.jdbc.DataSourceBuilder. so you have to edit in import

And then you will notice that you have to use DataSourceBuilder.create(classLoader) instead of new DataSourceBuilder(classLoader)

解决方案换成
 org.springframework.boot.jdbc.DataSourceBuilder