shiro:Shiro INI configuration was either not found or discovered to be empty/unconfigured.

1、问题描述

配置文件配置正确,且已在classpath路径下,但是报错:Shiro INI configuration was either not found or discovered to be empty/unconfigured.

配置文件:

shiro:Shiro INI configuration was either not found or discovered to be empty/unconfigured._第1张图片

 

 错误信息:

 

 打开classes文件找不到shiro.ini文件:

shiro:Shiro INI configuration was either not found or discovered to be empty/unconfigured._第2张图片

 

 

2、解决方案

在pom.xml中添加如下代码:

   <resource>
          <directory>src/main/resourcesdirectory>
          <includes>
            <include>**/*.*include>
          includes>
          <filtering>falsefiltering>
    resource>

因为idea不会自动将新保存的文件或目录及其他资源更新到target目录中

 

参考CSDN:https://blog.csdn.net/s_xchenzejian/article/details/89529482

你可能感兴趣的:(shiro:Shiro INI configuration was either not found or discovered to be empty/unconfigured.)