@Service
public class AuthFunctionInfoService extends CrudService<AuthFunctionInfoDaoInter, AuthFunctionInfo> {
@Lazy
@Autowired
AuthFunctionInfoService authFunctionInfoService;
@Async
public void test(){
authFunctionInfoService.sortFuncTree(null);
}
}
自己调用自己
本文探讨了在Java中使用@Service注解的AuthFunctionInfoService类实现异步自我调用的方法,通过@Async注解使服务能够调用自身进行树形功能排序。
1423





