首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
在项目启动后让一个方法自动启动一次后,不再启动
在项目启动后让一个方法自动启动一次后,不再启动
mac
2024-07-18
44
在类上面加上这个东东
public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) { try { //这里写只启动一次的方法 } catch (IOException e) { e.printStackTrace(); } }
转载请注明原文地址: https://mac.8miu.com/read-494864.html
最新回复
(
0
)