|
|
|
|
@ -152,7 +152,7 @@ public class JdbcDemoController {
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping("/api/getResult")
|
|
|
|
|
//@RequestMapping("/api/getResult")
|
|
|
|
|
public String getResult() {
|
|
|
|
|
// 自定义一个线程池,内部包含4个线程
|
|
|
|
|
ExecutorService executorService = Executors.newFixedThreadPool(4);
|
|
|
|
|
@ -180,7 +180,7 @@ public class JdbcDemoController {
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping("/api/getResult0")
|
|
|
|
|
//@RequestMapping("/api/getResult0")
|
|
|
|
|
public String getResult0() {
|
|
|
|
|
// 自定义一个线程池,内部包含4个线程
|
|
|
|
|
ExecutorService executorService = Executors.newFixedThreadPool(4);
|
|
|
|
|
|