1、问题描述
配置文件配置正确,且已在classpath路径下,但是报错:Shiro INI configuration was either not found or discovered to be empty/unconfigured.
配置文件:
错误信息:
打开classes文件找不到shiro.ini文件:
2、解决方案
在pom.xml中添加如下代码:
<resource> <directory>src/main/resources</directory> <includes> <include>**/*.*</include> </includes> <filtering>false</filtering> </resource>
因为idea不会自动将新保存的文件或目录及其他资源更新到target目录中
参考CSDN:https://blog.csdn.net/s_xchenzejian/article/details/89529482