简化数据库名称
This commit is contained in:
@@ -17,7 +17,7 @@ public class CodeGenerator {
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
final String[] tableName = {"api_custom_node", "api_custom_params"};
|
final String[] tableName = {"api_custom_node", "api_custom_params"};
|
||||||
String url = "jdbc:mysql://127.0.0.1:3306/zyplayer_doc_manage?useUnicode=true&useSSL=false&characterEncoding=utf8";
|
String url = "jdbc:mysql://127.0.0.1:3306/zyplayer_doc?useUnicode=true&useSSL=false&characterEncoding=utf8";
|
||||||
String projectPath = System.getProperty("user.dir") + "/zyplayer-doc-data";
|
String projectPath = System.getProperty("user.dir") + "/zyplayer-doc-data";
|
||||||
String outputDir = projectPath + "/src/main/java";
|
String outputDir = projectPath + "/src/main/java";
|
||||||
String mapperDir = projectPath + "/src/main/resources/mapper/manage/";
|
String mapperDir = projectPath + "/src/main/resources/mapper/manage/";
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ public class SqlParseUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String storageSql = "select * from zyplayer_doc_manage.wiki_space where id=1 group by id";
|
String storageSql = "select * from zyplayer_doc.wiki_space where id=1 group by id";
|
||||||
storageSql = storageSql.replaceAll("(#\\{\\w+})", "'$1'");
|
storageSql = storageSql.replaceAll("(#\\{\\w+})", "'$1'");
|
||||||
String selectCountSql = getSelectCountSql(storageSql);
|
String selectCountSql = getSelectCountSql(storageSql);
|
||||||
System.out.println(selectCountSql);
|
System.out.println(selectCountSql);
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ zyplayer:
|
|||||||
# 管理端的数据库配置
|
# 管理端的数据库配置
|
||||||
datasource:
|
datasource:
|
||||||
driverClassName: com.mysql.cj.jdbc.Driver
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://127.0.0.1:3306/zyplayer_doc_manage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false
|
url: jdbc:mysql://127.0.0.1:3306/zyplayer_doc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
# ------WIKI文档相关------
|
# ------WIKI文档相关------
|
||||||
|
|||||||
Reference in New Issue
Block a user