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
张帅
amos-tool
Commits
35efb713
Commit
35efb713
authored
Sep 19, 2023
by
zhaozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除我自己加的不必要的注解,修改配置文件到原本的样子
parent
56347814
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
DataBaseLinkService.java
...ejoin/amos/api/tool/face/service/DataBaseLinkService.java
+0
-2
application.properties
src/main/resources/application.properties
+2
-2
No files found.
src/main/java/com/yeejoin/amos/api/tool/face/service/DataBaseLinkService.java
View file @
35efb713
...
@@ -39,7 +39,6 @@ public class DataBaseLinkService extends BaseService<DataBaseLinkModel, DataBase
...
@@ -39,7 +39,6 @@ public class DataBaseLinkService extends BaseService<DataBaseLinkModel, DataBase
private
static
final
Logger
log
=
LogManager
.
getLogger
(
DataBaseLinkService
.
class
);
private
static
final
Logger
log
=
LogManager
.
getLogger
(
DataBaseLinkService
.
class
);
@Autowired
@Autowired
// @Resource
private
DataSource
dataSource
;
private
DataSource
dataSource
;
/**
/**
* 新增
* 新增
...
@@ -152,7 +151,6 @@ public class DataBaseLinkService extends BaseService<DataBaseLinkModel, DataBase
...
@@ -152,7 +151,6 @@ public class DataBaseLinkService extends BaseService<DataBaseLinkModel, DataBase
// 连接新增的数据库
// 连接新增的数据库
String
dbUrl
=
"jdbc:mysql://"
+
model
.
getIp
()
+
":"
+
model
.
getPort
()
+
"/"
+
String
dbUrl
=
"jdbc:mysql://"
+
model
.
getIp
()
+
":"
+
model
.
getPort
()
+
"/"
+
model
.
getPrefix
()+
model
.
getDbName
()+
model
.
getSuffix
();
model
.
getPrefix
()+
model
.
getDbName
()+
model
.
getSuffix
();
// model.getDbName();
// 解密pwd,并连接
// 解密pwd,并连接
return
DriverManager
.
getConnection
(
dbUrl
,
model
.
getUserName
(),
AESUtils
.
decrypt
(
model
.
getPassWord
()));
return
DriverManager
.
getConnection
(
dbUrl
,
model
.
getUserName
(),
AESUtils
.
decrypt
(
model
.
getPassWord
()));
}
catch
(
SQLException
|
ClassNotFoundException
e
)
{
}
catch
(
SQLException
|
ClassNotFoundException
e
)
{
...
...
src/main/resources/application.properties
View file @
35efb713
...
@@ -3,8 +3,8 @@ server.servlet.context-path=/atl
...
@@ -3,8 +3,8 @@ server.servlet.context-path=/atl
#server.servlet.context-path=/jcs
#server.servlet.context-path=/jcs
server.port
=
30002
server.port
=
30002
#server.port=20000
#server.port=20000
#
spring.profiles.active=dev
spring.profiles.active
=
dev
spring.profiles.active
=
qa
#
spring.profiles.active=qa
management.health.elasticsearch.enabled
=
false
management.health.elasticsearch.enabled
=
false
spring.jackson.time-zone
=
GMT+8
spring.jackson.time-zone
=
GMT+8
...
...
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