1.0.1 version

This commit is contained in:
trang
2017-07-12 18:33:26 +08:00
parent 97f065649d
commit 6674f2f85b
4 changed files with 135 additions and 141 deletions
+6 -1
View File
@@ -1,3 +1,8 @@
# Changelog
## 1.0.0
### 1.0.1
1. 增加一部分 application.yml 的代码提示,如 `enabled`、`db-type` 等
2. 统一配置文件位置
### 1.0.0
1. 提供基于 Druid 的 Spring Boot Starter
@@ -64,139 +64,130 @@
"defaultValue": false
}
],
"hints": [{
"name": "spring.datasource.druid.stat.db-type",
"values": [{
"value": "db2",
"description": "db2."
},{
"value": "postgresql",
"description": "postgresql."
},{
"value": "sqlserver",
"description": "sqlserver."
},{
"value": "oracle",
"description": "oracle."
},{
"value": "AliOracle",
"description": "AliOracle."
},{
"value": "mysql",
"description": "mysql."
},{
"value": "mariadb",
"description": "mariadb."
},{
"value": "hive",
"description": "hive."
},{
"value": "h2",
"description": "h2."
},{
"value": "dm",
"description": "dm."
},{
"value": "kingbase",
"description": "kingbase."
},{
"value": "oceanbase",
"description": "oceanbase."
},{
"value": "odps",
"description": "odps."
},{
"value": "teradata",
"description": "teradata."
},{
"value": "log4jdbc",
"description": "log4jdbc."
},{
"value": "phoenix",
"description": "phoenix."
},{
"value": "edb",
"description": "edb."
},{
"value": "kylin",
"description": "kylin."
},{
"value": "sqlite",
"description": "sqlite."
}]
},{
"name": "spring.datasource.druid.wall.db-type",
"values": [{
"value": "db2",
"description": "db2."
},{
"value": "postgresql",
"description": "postgresql."
},{
"value": "sqlserver",
"description": "sqlserver."
},{
"value": "oracle",
"description": "oracle."
},{
"value": "AliOracle",
"description": "AliOracle."
},{
"value": "mysql",
"description": "mysql."
},{
"value": "mariadb",
"description": "mariadb."
},{
"value": "hive",
"description": "hive."
},{
"value": "h2",
"description": "h2."
},{
"value": "dm",
"description": "dm."
},{
"value": "kingbase",
"description": "kingbase."
},{
"value": "oceanbase",
"description": "oceanbase."
},{
"value": "odps",
"description": "odps."
},{
"value": "teradata",
"description": "teradata."
},{
"value": "log4jdbc",
"description": "log4jdbc."
},{
"value": "phoenix",
"description": "phoenix."
},{
"value": "edb",
"description": "edb."
},{
"value": "kylin",
"description": "kylin."
},{
"value": "sqlite",
"description": "sqlite."
}]
}]
}
"hints": [
{
"name": "spring.datasource.druid.stat.db-type",
"values": [
{
"value": "db2"
},
{
"value": "postgresql"
},
{
"value": "sqlserver"
},
{
"value": "oracle"
},
{
"value": "AliOracle"
},
{
"value": "mysql"
},
{
"value": "mariadb"
},
{
"value": "hive"
},
{
"value": "h2"
},
{
"value": "dm"
},
{
"value": "kingbase"
},
{
"value": "oceanbase"
},
{
"value": "odps"
},
{
"value": "teradata"
},
{
"value": "log4jdbc"
},
{
"value": "phoenix"
},
{
"value": "edb"
},
{
"value": "kylin"
},
{
"value": "sqlite"
}
]
},
{
"name": "spring.datasource.druid.wall.db-type",
"values": [
{
"value": "db2"
},
{
"value": "postgresql"
},
{
"value": "sqlserver"
},
{
"value": "oracle"
},
{
"value": "AliOracle"
},
{
"value": "mysql"
},
{
"value": "mariadb"
},
{
"value": "hive"
},
{
"value": "h2"
},
{
"value": "dm"
},
{
"value": "kingbase"
},
{
"value": "oceanbase"
},
{
"value": "odps"
},
{
"value": "teradata"
},
{
"value": "log4jdbc"
},
{
"value": "phoenix"
},
{
"value": "edb"
},
{
"value": "kylin"
},
{
"value": "sqlite"
}
]
}
]
}
@@ -20,8 +20,6 @@ public class DruidSpringBootStarterApplication implements CommandLineRunner {
SpringApplication.run(DruidSpringBootStarterApplication.class, args);
}
@Autowired
private DruidDataSource dataSource;
@Autowired
private CityMapper cityMapper;
@@ -48,10 +48,10 @@ spring:
log-violation: true
throw-exception: false
aop-stat:
enabled: false
enabled: true
patterns: com.github.trang.*
web-stat-filter:
enabled: false
enabled: true
stat-view-servlet:
enabled: true
schema: classpath:import.sql