在Spring Batch中使用Spring Security(Using Spring Security with Spring Batch)
我有一个使用
@PreAuthorize
注释保护的Spring Service层。 到目前为止,这已经通过Web应用程序使用。 现在我需要启用SpringBatch作业来使用这些服务。在调用这些服务方法之前,让作业授权的最直接的方法是什么?
I have a Spring Service layer that is secured with
@PreAuthorize
annotation. So far this has been used through a web application. Now I need to enable our SpringBatch jobs to use these services.What's the most straight-forward way to enable jobs to authorize them before calling these service methods?
原文:https://stackoverflow.com/questions/12834295
更新时间:2024-03-02 17:03