fix:连接postgre数据库
parent
07a2fc9618
commit
389f0be640
|
@ -18,6 +18,11 @@
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.postgresql</groupId>
|
||||||
|
<artifactId>postgresql</artifactId>
|
||||||
|
<version>42.3.8</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
|
|
|
@ -164,7 +164,8 @@ public class BasicConfigInfoServiceImpl extends ServiceImpl<BasicConfigInfoMapp
|
||||||
TableInfo build = TableInfo.builder()
|
TableInfo build = TableInfo.builder()
|
||||||
.basicId(basicConfigInfo.getId())
|
.basicId(basicConfigInfo.getId())
|
||||||
.tableName(tableName1)
|
.tableName(tableName1)
|
||||||
.tableRemark(tableRemark.isEmpty()? "null":tableRemark)
|
//bug点,tableRemark为空,造成空指针异常
|
||||||
|
.tableRemark(tableRemark==null? "null":tableRemark)
|
||||||
.parentId(tableInfo.getId())
|
.parentId(tableInfo.getId())
|
||||||
.center("Y")
|
.center("Y")
|
||||||
.updateBy(SecurityUtils.getUsername())
|
.updateBy(SecurityUtils.getUsername())
|
||||||
|
@ -190,6 +191,7 @@ public class BasicConfigInfoServiceImpl extends ServiceImpl<BasicConfigInfoMapp
|
||||||
thread.run();
|
thread.run();
|
||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
log.error(e.getMessage());
|
||||||
throw new ServletException("连接失败");
|
throw new ServletException("连接失败");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue