[
https://issues.apache.org/jira/browse/SHIRO-634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277096#comment-17277096
]
kai xu commented on SHIRO-634:
------------------------------
Found a solution. There is a confliction btween the versions of aspectjrt and
aspectjweaver module in shiro and the one in spirngbootJPA.
A workaround solution is;
implementation (deps.springbootJPA) {
exclude module: "aspectjrt"
exclude module: "aspectjweaver"
}
> confilict with spring-boot-starter-data-jpa
> -------------------------------------------
>
> Key: SHIRO-634
> URL: https://issues.apache.org/jira/browse/SHIRO-634
> Project: Shiro
> Issue Type: Bug
> Components: Integration: Spring
> Affects Versions: 1.4.0-RC2
> Environment: win10, intellij idea
> Reporter: gejian
> Assignee: Les Hazlewood
> Priority: Major
> Attachments: xiaojucheng.7z
>
> Original Estimate: 1h 1m
> Remaining Estimate: 1h 1m
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)