浏览代码

Merge remote-tracking branch 'origin/master'

qianming 4 年之前
父节点
当前提交
fdf1faf5f3

+ 4 - 0
report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/service/impl/DataSourceServiceImpl.java

@@ -96,6 +96,8 @@ public class DataSourceServiceImpl implements DataSourceService {
             case JdbcConstants.MYSQL:
             case JdbcConstants.KUDU_IMAPLA:
             case JdbcConstants.ORACLE:
+            case JdbcConstants.SQL_SERVER:
+            case JdbcConstants.JDBC:
                 testRelationalDb(dto);
                 break;
             case JdbcConstants.HTTP:
@@ -118,6 +120,8 @@ public class DataSourceServiceImpl implements DataSourceService {
             case JdbcConstants.MYSQL:
             case JdbcConstants.KUDU_IMAPLA:
             case JdbcConstants.ORACLE:
+            case JdbcConstants.SQL_SERVER:
+            case JdbcConstants.JDBC:
                 return executeRelationalDb(dto);
             case JdbcConstants.HTTP:
                 return executeHttp(dto);

+ 2 - 3
report-core/src/main/java/com/anjiplus/template/gaea/business/util/JdbcConstants.java

@@ -12,8 +12,8 @@ public class JdbcConstants {
    public final static String MYSQL = "mysql";
    public final static String ORACLE = "oracle";
    public final static String ELASTIC_SEARCH_SQL = "elasticsearch_sql";
-
-
+   public final static String SQL_SERVER = "mssqlserver";
+   public final static String JDBC = "jdbc";
 
 
 
@@ -25,7 +25,6 @@ public class JdbcConstants {
    public final static String POSTGRESQL = "postgresql";
    public final static String POSTGRESQL_DRIVER = "org.postgresql.Driver";
    public final static String SYBASE = "sybase";
-   public final static String SQL_SERVER = "sqlserver";
    public final static String SQL_SERVER_DRIVER = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    public final static String SQL_SERVER_DRIVER_SQLJDBC4 = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    public final static String SQL_SERVER_DRIVER_JTDS = "net.sourceforge.jtds.jdbc.Driver";

+ 5 - 3
report-core/src/main/resources/bootstrap-dev.yml

@@ -67,11 +67,13 @@ management:
 logging:
   config: classpath:logback.xml
 file:
+  #上传对应本地全路径
   dist-path: /app/disk/upload/
   white-list: .png|.jpg|.gif|.icon|.pdf|.xlsx|.xls|.csv|.mp4|.avi
   excelSuffix: .xlsx|.xls|.csv
-  downloadPath: http://10.108.26.197:9095/file/
-  
+  #上传对应下载的下载链接路径 http://serverip:9095/file/download
+  downloadPath: http://10.108.26.197:9095/file/download
+
 customer:
   # 跳过token验证和权限验证的url清单
-  skip-authenticate-urls: /gaeaDict/all, /login, /static, /file/download/, /index.html
+  skip-authenticate-urls: /gaeaDict/all, /login, /static, /file/download/, /index.html