Commit 08a4836e25e0e4b711ff8461166682adea79b05a
1 parent
f3df88180f
Exists in
master
and in
1 other branch
微量元素测量
Showing 3 changed files with 5 additions and 6 deletions
platform-transfer/src/main/java/com/lyms/platform/microelement/MicroelementWorker.java
View file @
08a4836
... | ... | @@ -21,6 +21,7 @@ |
21 | 21 | |
22 | 22 | public static void getMicroelementRecords() |
23 | 23 | { |
24 | + System.out.println("getMicroelementRecords start"); | |
24 | 25 | Connection conn = null; |
25 | 26 | Statement sta = null; |
26 | 27 | ResultSet rst = null; |
... | ... | @@ -51,6 +52,7 @@ |
51 | 52 | Statement sta = null; |
52 | 53 | ResultSet rst = null; |
53 | 54 | try { |
55 | + conn = MicroelementConnection.getConnection(); | |
54 | 56 | String autoId = data.get("autoId").toString(); |
55 | 57 | sta = conn.createStatement(); |
56 | 58 | rst = sta.executeQuery("select * from ItemsInfo where BaseAutoId = "+autoId); |
platform-transfer/src/main/resources/spring/applicationContext.xml
View file @
08a4836
platform-transfer/src/main/webapp/WEB-INF/web.xml
View file @
08a4836
... | ... | @@ -15,13 +15,9 @@ |
15 | 15 | <context-param> |
16 | 16 | <param-name>contextConfigLocation</param-name> |
17 | 17 | <param-value> |
18 | - classpath*:/spring/applicationContext-sync-data.xml | |
18 | + classpath*:/spring/applicationContext.xml | |
19 | 19 | </param-value> |
20 | 20 | </context-param> |
21 | - <context-param> | |
22 | - <param-name>webAppRootKey</param-name> | |
23 | - <param-value>webapp.job.index</param-value> | |
24 | - </context-param> | |
25 | 21 | <session-config> |
26 | 22 | <session-timeout>60</session-timeout> |
27 | 23 | </session-config> |
... | ... | @@ -38,7 +34,7 @@ |
38 | 34 | <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
39 | 35 | <init-param> |
40 | 36 | <param-name>contextConfigLocation</param-name> |
41 | - <param-value>classpath*:/spring/applicationContext-mvc.xml</param-value> | |
37 | + <param-value>classpath*:/spring/applicationContext.xml</param-value> | |
42 | 38 | </init-param> |
43 | 39 | <load-on-startup>1</load-on-startup> |
44 | 40 | </servlet> |