Commit 5cc0dd71 authored by Quxl's avatar Quxl

修改SQLSERVER连接池配置

Change-Id: I623533a269651c58d68f9b301e147bc0361c3686
parent c03f9101
package com.egolm.admin.controller;
import java.util.List;
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.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
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.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
......@@ -36,16 +28,4 @@ public class LinkController {
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, "");
}
}
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