Raod %!s(int64=4) %!d(string=hai) anos
pai
achega
d90441669e

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

@@ -305,7 +305,7 @@ public class DataSourceServiceImpl implements DataSourceService {
             String catalog = unPooledConnection.getCatalog();
             String catalog = unPooledConnection.getCatalog();
             log.info("数据库测试连接成功:{}", catalog);
             log.info("数据库测试连接成功:{}", catalog);
             unPooledConnection.close();
             unPooledConnection.close();
-        } catch (Exception e) {
+        } catch (SQLException e) {
             log.error("error",e);
             log.error("error",e);
             throw BusinessExceptionBuilder.build(ResponseCode.DATA_SOURCE_CONNECTION_FAILED, e.getMessage());
             throw BusinessExceptionBuilder.build(ResponseCode.DATA_SOURCE_CONNECTION_FAILED, e.getMessage());
         }
         }