NipGeihou's blog NipGeihou's blog
  • 开发规范
  • 进阶笔记
  • 微服务
  • 快速开始
  • 设计模式
  • NoSQL 数据库

    • Redis
  • 数据结构与算法
  • 计算机网络
烹饪
关于
  • 分类
  • 标签
  • 归档

NipGeihou

我见青山多妩媚,料青山见我应如是
  • 开发规范
  • 进阶笔记
  • 微服务
  • 快速开始
  • 设计模式
  • NoSQL 数据库

    • Redis
  • 数据结构与算法
  • 计算机网络
烹饪
关于
  • 分类
  • 标签
  • 归档
  • 设计模式

  • 开发规范

  • 经验分享

  • 记录

    • Spring

      • 「记录」Spring经验总结
      • 「Spring Boot」配置优先级
      • 注解 - @Transactional 事务
    • 「记录」SpringBoot与前端传递的json中属性映射读写注解
    • Maven常用命令
    • 「记录」ruoyi-vue部署Linux报错
    • 「记录」Java使用CAS更新对象字段值
    • Spring Boot优雅关机报dataSource already closed
    • 「MyBatis」MyBatis常用标签
    • 改造ruoyi-cloud
    • maven报错:'parent.relativePath' points at no local
  • 快速开始

  • 笔记

  • 面试题

  • 微服务

  • Java
  • 记录
NipGeihou
2022-01-21

「记录」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>
上次更新: 2023/06/10, 18:45:20
Maven常用命令
「记录」Java使用CAS更新对象字段值

← Maven常用命令 「记录」Java使用CAS更新对象字段值→

最近更新
01
概念
06-10
02
第三方登录 - Facebook
06-09
03
防火墙 - iptables
06-08
更多文章>
Theme by Vdoing | Copyright © 2018-2023 NipGeihou | 友情链接
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式