Results 1 to 2 of 2

Thread: "No mapping found for HTTP" and proxy-target-class

  1. #1
    Join Date
    Mar 2011
    Posts
    1

    Default "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. #2
    Join Date
    Dec 2010
    Posts
    315

    Default

    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
  •