Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-tool
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tool
amos-tool
Commits
245a5681
Commit
245a5681
authored
Jul 26, 2023
by
陈祥烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
730bcb9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
ApiInfoResource.java
...com/yeejoin/amos/api/tool/controller/ApiInfoResource.java
+1
-1
DataBaseLinkService.java
...ejoin/amos/api/tool/face/service/DataBaseLinkService.java
+3
-1
application.properties
src/main/resources/application.properties
+2
-2
No files found.
src/main/java/com/yeejoin/amos/api/tool/controller/ApiInfoResource.java
View file @
245a5681
...
@@ -35,7 +35,7 @@ public class ApiInfoResource {
...
@@ -35,7 +35,7 @@ public class ApiInfoResource {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
@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
);
apiInfoModel
=
apiInfoService
.
createWithModel
(
apiInfoModel
);
return
ResponseHelper
.
buildResponse
(
apiInfoModel
);
return
ResponseHelper
.
buildResponse
(
apiInfoModel
);
}
}
...
...
src/main/java/com/yeejoin/amos/api/tool/face/service/DataBaseLinkService.java
View file @
245a5681
...
@@ -95,8 +95,10 @@ public class DataBaseLinkService extends BaseService<DataBaseLinkModel, DataBase
...
@@ -95,8 +95,10 @@ public class DataBaseLinkService extends BaseService<DataBaseLinkModel, DataBase
* 机构列表查询
* 机构列表查询
*/
*/
public
List
<
AgencyModel
>
queryForAgencyList
()
throws
SQLException
,
IOException
{
public
List
<
AgencyModel
>
queryForAgencyList
()
throws
SQLException
,
IOException
{
Connection
con
=
dataSource
.
getConnection
();
URL
url
=
new
URL
URL
url
=
new
URL
(
dataSource
.
getConnection
().
getMetaData
().
getURL
().
replace
(
"jdbc:mysql"
,
"http"
));
(
con
.
getMetaData
().
getURL
().
replace
(
"jdbc:mysql"
,
"http"
));
con
.
close
();
log
.
info
(
url
);
log
.
info
(
url
);
DataBaseLink
dataBaseLink
=
getOne
(
new
QueryWrapper
<
DataBaseLink
>().
eq
(
"IP"
,
url
.
getHost
()));
DataBaseLink
dataBaseLink
=
getOne
(
new
QueryWrapper
<
DataBaseLink
>().
eq
(
"IP"
,
url
.
getHost
()));
DataBaseLinkModel
dataBaseLinkModel
=
new
DataBaseLinkModel
();
DataBaseLinkModel
dataBaseLinkModel
=
new
DataBaseLinkModel
();
...
...
src/main/resources/application.properties
View file @
245a5681
spring.application.name
=
AMOS-ATL
spring.application.name
=
AMOS-ATL
server.servlet.context-path
=
/atl
server.servlet.context-path
=
/atl
#server.servlet.context-path=/jcs
#server.servlet.context-path=/jcs
#server.port=30201
server.port
=
30002
server.port
=
20000
#
server.port=20000
spring.profiles.active
=
dev
spring.profiles.active
=
dev
management.health.elasticsearch.enabled
=
false
management.health.elasticsearch.enabled
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment