Commit 245a5681 authored by 陈祥烨's avatar 陈祥烨

优化

parent 730bcb9a
......@@ -35,7 +35,7 @@ public class ApiInfoResource {
@TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false)
@PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public ResponseModel<ApiInfoModel> save(@RequestBody ApiInfoModel apiInfoModel) throws Exception {
public ResponseModel<ApiInfoModel> save(@RequestBody ApiInfoModel apiInfoModel) {
apiInfoModel = apiInfoService.createWithModel(apiInfoModel);
return ResponseHelper.buildResponse(apiInfoModel);
}
......
......@@ -95,8 +95,10 @@ public class DataBaseLinkService extends BaseService<DataBaseLinkModel, DataBase
* 机构列表查询
*/
public List<AgencyModel> queryForAgencyList() throws SQLException, IOException {
Connection con = dataSource.getConnection();
URL url = new URL
(dataSource.getConnection().getMetaData().getURL().replace("jdbc:mysql","http"));
(con.getMetaData().getURL().replace("jdbc:mysql","http"));
con.close();
log.info(url);
DataBaseLink dataBaseLink = getOne(new QueryWrapper<DataBaseLink>().eq("IP",url.getHost()));
DataBaseLinkModel dataBaseLinkModel = new DataBaseLinkModel();
......
spring.application.name=AMOS-ATL
server.servlet.context-path=/atl
#server.servlet.context-path=/jcs
#server.port=30201
server.port=20000
server.port=30002
#server.port=20000
spring.profiles.active=dev
management.health.elasticsearch.enabled=false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment