Announcement Announcement Module
Collapse
No announcement yet.
"No mapping found for HTTP" and proxy-target-class Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • "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!

  • #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.

    Comment

    Working...
    X