Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些场景
请给我一些带有适当符号的骨架。
您应该将方法设置为同步,但如果您想调用异步方法,则应在异步方法内部调用同步方法。
public void mySyncMethod(){ //whatever you want. }
异步方法
@Async public void myAsyncMethod(){ mySyncMethod(); }
我想你正在使用弹簧靴