Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-634

confilict with spring-boot-starter-data-jpa

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.4.0-RC2
    • Fix Version/s: None
    • Component/s: Integration: Spring
    • Labels:
      None
    • Environment:
      win10, intellij idea
    • Flags:
      Important

      Description

      i am using the shiro-spring-boot-web-starter:1.4.0 with spring boot.
      the attachment is a maven based project.
      the example class is com.ankin.dajucheng.controller.ClassificationController.
      when spring-data-jpa is used, the method:queryClassifications in the controller class of spring mvc can not mapping to the correct method, if you enter 'http://localhost:8500/classification/simple', it will return 404.
      But if i remove the shiro annotations(@RequiresRoles) in the controller class, then if you enter 'http://localhost:8500/classification/simple', it will return the correct string 'simple:success';
      the datasource is set to jdbc:mysql://192.168.1.118:3306/nmx in application.properties, you can change to any mysql database url. i haven't add any entity, so every avaliable database is ok.

        Attachments

        1. xiaojucheng.7z
          3 kB
          gejian

          Activity

            People

            • Assignee:
              lhazlewood Les Hazlewood
              Reporter:
              gj gejian
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1h 1m
                1h 1m
                Remaining:
                Remaining Estimate - 1h 1m
                1h 1m
                Logged:
                Time Spent - Not Specified
                Not Specified