my-springsecurity-plus icon indicating copy to clipboard operation
my-springsecurity-plus copied to clipboard

启动报错

Open kN6jq opened this issue 1 year ago • 0 comments

报错内容大概如下

Caused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [mybatis-mappers/]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1385) ~[tomcat-embed-core-9.0.36.jar:9.0.36] at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1038) ~[tomcat-embed-core-9.0.36.jar:9.0.36]

解决办法

修改mybaits配置

#mybatis配置
mybatis:
  type-aliases-package: com.codermy.myspringsecurityplus.entity
#  mapper-locations: classpath:/mybatis-mappers/*
  mapper-locations: classpath*:mybatis-mappers/*.xml
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: true

image

kN6jq avatar Oct 07 '24 03:10 kN6jq