FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

异步任务bug修复 · JavaCodeMood/SpringBootUnity@af47c5d · GitHub

Commit af47c5d

Browse files
committed
异步任务bug修复
1 parent 3b75063 commit af47c5d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎async/src/main/java/info/xiaomo/anysc/AsyncMain.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import org.springframework.boot.SpringApplication;
55
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
66
import org.springframework.boot.autoconfigure.domain.EntityScan;
7+
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
8+
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
79
import org.springframework.context.annotation.ComponentScan;
810
import org.springframework.context.annotation.Configuration;
911

@@ -22,14 +24,12 @@
2224
* Copyright(©) 2015 by xiaomo.
2325
**/
2426
@Configuration
25-
@EnableAutoConfiguration
27+
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
2628
@ComponentScan("info.xiaomo")
2729
@EntityScan("info.xiaomo.*.model")
2830
public class AsyncMain {
2931
public static void main(String[] args) throws Exception {
3032
SpringApplication.run(AsyncMain.class, args);
3133
}
3234

33-
34-
3535
}

‎async/src/main/java/info/xiaomo/anysc/controller/TestController.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
**/
2727

2828
@RestController
29-
@RequestMapping("/async")
29+
@RequestMapping("/")
3030
public class TestController extends BaseController {
3131

3232
private final AsyncTask task;
@@ -36,7 +36,7 @@ public TestController(AsyncTask task) {
3636
this.task = task;
3737
}
3838

39-
@RequestMapping(value = "/task", method = RequestMethod.GET)
39+
@RequestMapping(value = "/", method = RequestMethod.GET)
4040
public Result task() throws Exception {
4141
long start = System.currentTimeMillis();
4242

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL