【发布时间】:2011-12-13 22:14:34
【问题描述】:
我想在oauth2 类中调用一个控制器方法
org.springframework.security.oauth2.provider.endpoint
@RequestMapping(value = "/oauth/authorize", method = RequestMethod.POST)
public void approveOrDeny(@RequestParam("user_oauth_approval")
boolean approved,
HttpServletRequest request,
HttpServletResponse response) throws IOException,
ServletException {
....
}
来自我的应用程序。要调用上面的类,我尝试使用它。结果是“无法访问”。
<context:component-scan base-package="org.stjude.ri.bwfp">
<context:include-filter type="regex" expression="org.springframework.security.oauth2.*"/>
<context:exclude-filter expression=".*_Roo_.*"
type="regex" />
<context:exclude-filter expression="org.springframework.stereotype.Controller"
type="annotation" />
</context:component-scan>
如何调用org.springframework.security.oauth2.provider.*中的控制器类方法?
【问题讨论】:
-
以下答案也可能会有所帮助:@Service are constructed twice
标签: spring spring-mvc oauth-2.0