ruoyi-vue部署Linux报错
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysDeptServiceImpl': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysUserServiceImpl': Unsatisfied dependency expressed through field 'configService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysConfigServiceImpl': Invocation of init method failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cn.nipx.system.mapper.SysConfigMapper.selectConfigList
原因是因为 maven 不知道 resource 文件夹,因此需要手动指定,暂不知道是什么导致的这个问题,在开发的时使用 IDEA 也遇到过 resource 文件夹没有了 resource 的标识,需要右键手动设置一下。
解决办法:
nadmin-system/pom.xml
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
<include>**/*.xls</include>
<include>**/*.xsl</include>
<include>**/*.xlsx</include>
<include>**/*.tld</include>
<include>**/*.png</include>
</includes>
</resource>
</resources>
</build>
上次更新: 2024/01/31, 11:46:46