增加README.md 项目说明
This commit is contained in:
@ -15,12 +15,6 @@ import org.springframework.context.annotation.PropertySource;
|
||||
@Data
|
||||
public class DataSourceConfig {
|
||||
|
||||
/**
|
||||
* 感觉这种注入的方式并不够好
|
||||
* 没有spring-boot中使用@ConfigurationProperties(prefix = "config")指定前缀注入的方式优雅
|
||||
*/
|
||||
@Value("${mysql.driverClassName}")
|
||||
private String driverClassName;
|
||||
@Value("${mysql.url}")
|
||||
private String url;
|
||||
@Value("${mysql.username}")
|
||||
|
@ -1,4 +1,4 @@
|
||||
# mysql <20><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD>
|
||||
mysql.url=jdbc:mysql://localhost:3306/mysql
|
||||
mysql.url=jdbc:mysql://localhost:3306/mysql?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false
|
||||
mysql.username=root
|
||||
mysql.password=root
|
||||
|
Reference in New Issue
Block a user