-
Mar 5th, 2011, 09:57 AM
#1
"No mapping found for HTTP" and proxy-target-class
Hi all, I'm new and i have some troubles with this simple configuration
public interface con{
@PreAuthorize("...")
@RequestMapping("..")
void method();
}
@Controller
public class conImp implements interface{
@Override
void method(){...}
}
i get "[org.springframework.web.servlet.PageNotFound] - No mapping found for HTTP ecc" (without @PreAuthorize controller works but ob no more security).Looking on google i found that with setting proxy-target-class="true" on global-method-security all its ok. So the question is, why spring security need this attribute with @PreAuthorize and @RequestMapping?
Thank you!
-
Mar 7th, 2011, 07:05 AM
#2
It would be helpful if you post your whole configuration relating to Spring Security and your Controller class. Also you might want to compare your setup and configuration with the following guide: http://krams915.blogspot.com/2010/12...ng-native.html
You might find some differences or similarities that might help you troubleshoot your application.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules