Commit 9b7d0aac2ea52dcb78f9dbffac875a5fc1dbba00
1 parent
8f62499f
配置Scheduled定时任务为多线程
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/resources/application.properties
| ... | ... | @@ -22,6 +22,8 @@ server.tomcat.uri-encoding=UTF-8 |
| 22 | 22 | spring.http.encoding.charset=UTF-8 |
| 23 | 23 | spring.http.encoding.enabled=true |
| 24 | 24 | spring.http.encoding.force=true |
| 25 | +#\u914D\u7F6EScheduled\u5B9A\u65F6\u4EFB\u52A1\u4E3A\u591A\u7EBF\u7A0B | |
| 26 | +spring.task.scheduling.pool.size=8 | |
| 25 | 27 | |
| 26 | 28 | mybatis.mapper-locations=classpath:mapper/*.xml |
| 27 | 29 | mybatis.type-aliases-package=com.cnlive.shenhe.entity |
| 28 | 30 | \ No newline at end of file | ... | ... |