Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
admin
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
曲欣亮
admin
Commits
5cc0dd71
Commit
5cc0dd71
authored
Aug 06, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改SQLSERVER连接池配置
Change-Id: I623533a269651c58d68f9b301e147bc0361c3686
parent
c03f9101
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
LinkController.java
src/main/java/com/egolm/admin/controller/LinkController.java
+0
-20
No files found.
src/main/java/com/egolm/admin/controller/LinkController.java
View file @
5cc0dd71
package
com
.
egolm
.
admin
.
controller
;
package
com
.
egolm
.
admin
.
controller
;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.egolm.admin.pojo.TSystemCtrl
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
...
@@ -36,16 +28,4 @@ public class LinkController {
...
@@ -36,16 +28,4 @@ public class LinkController {
return
"1111"
;
return
"1111"
;
}
}
@Autowired
@Qualifier
(
"shopJdbcTemplate"
)
private
JdbcTemplate
jdbcTemplate
;
@ResponseBody
@ApiOperation
(
"测试SQLSERVER数据库连接"
)
@RequestMapping
(
value
=
"/testSqlserverConnect"
,
method
=
RequestMethod
.
POST
)
public
Object
testSqlserverConnect
()
{
String
sql
=
"select * from tSystemCtrl where sCode in ? and nTag&1=0"
;
return
jdbcTemplate
.
queryForList
(
sql
,
TSystemCtrl
.
class
,
""
);
}
}
}
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