Commit d6dc0538e98aec5b01d0dfa395d904f764b21896

Authored by shiyang
1 parent 90e167cc92
Exists in master

公众号获取access_token:测试环境部署不要开启。会与线上环境冲突

Showing 1 changed file with 1 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/AccessTokenServlet.java View file @ d6dc053
... ... @@ -24,7 +24,7 @@
24 24 * 启动后开启线程每5分钟获取一次token
25 25 * @throws ServletException
26 26 */
27   - @PostConstruct//部署时开启注释,启动线程
  27 +// @PostConstruct//部署时开启注释,启动线程(测试环境部署不要开启。会与线上环境冲突)
28 28 public void init() throws ServletException {
29 29 new Thread(new AccessTokenServlet()).start(); //启动线程
30 30 }