Raod 4 жил өмнө
parent
commit
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();
             log.info("数据库测试连接成功:{}", catalog);
             unPooledConnection.close();
-        } catch (Exception e) {
+        } catch (SQLException e) {
             log.error("error",e);
             throw BusinessExceptionBuilder.build(ResponseCode.DATA_SOURCE_CONNECTION_FAILED, e.getMessage());
         }