Résumé des exceptions communes à Shiro

 

1.ClassNotFoundException

Lorsque vous pensez qu'il n'y a aucun problème avec le code, il se peut qu'un certain package soit manquant. Dans le conteneur Spring, vous devez dépendre de certains packages pour trouver la classe.

        <! - 2 .Printemps ->
        <dépendance>
            <groupId> org.springframework </groupId>
            <artifactId> ressort-noyau </artifactId>
            <version> 4.0 . 0 .RELEASE </version>
        </dependency>
        <dépendance>
            <groupId> org.springframework </groupId>
            <artifactId> ressort-contexte </artifactId>
            <version> 4.0 . 0 .RELEASE </version>
        </dependency>
        <dépendance>
            <groupId> org.springframework </groupId>
            <artifactId> spring-jdbc </artifactId>
            <version> 4.0 . 0 .RELEASE </version>
        </dependency>
        <dépendance>
            <groupId> org.springframework </groupId>
            <artifactId> spring-orm </artifactId>
            <version> 4.0 . 0 .RELEASE </version>
        </dependency>
        
        <! - 1 transaction de conteneur de printemps->
        <dépendance>
            <groupId> org.springframework </groupId>
            <artifactId> spring-tx </artifactId>
            <version> 4.0 . 0 .RELEASE </version>
        </dependency>
        <dépendance>
            <groupId> org.springframework </groupId>
            <artifactId> aspects printaniers </artifactId>
            <version> 4.0 . 0 .RELEASE </version>
        </dependency>
        <dépendance>
            <groupId> org.aspectj </groupId>
            <artifactId> aspectjweaver </artifactId>
            <version> 1.6 . 8 </version>
        </dependency>
        <dépendance>
            <groupId> aopalliance </groupId>
            <artifactId> aopalliance </artifactId>
            <version> 1.0 </version>
        </dependency>

 

Je suppose que tu aimes

Origine www.cnblogs.com/timingstarts/p/12735426.html
conseillé
Classement