关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 8754|回复: 2

jeecg-boot 2.4.0 新建 module 无法访问

[复制链接]
发表于 2021-2-9 10:21:16 | 显示全部楼层 |阅读模式
1、创建新模块 jeecg-boot-module-jyjy ,项目结构如下,代码是通过 online功能生成的。

其中 pom.xml 中的配置如下,已经引用了jeecg-boot-base-core 模块:
<parent>
    <artifactId>jeecg-boot-parent</artifactId>
    <groupId>org.jeecgframework.boot</groupId>
    <version>2.4.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>jeecg-boot-module-jyjy</artifactId>

  <repositories>
    <repository>
      <id>aliyun</id>
      <name>aliyun Repository</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>jeecg</id>
      <name>jeecg Repository</name>
      <url>http://maven.jeecg.org/nexus/con ... s/jeecg</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>org.jeecgframework.boot</groupId>
      <artifactId>jeecg-boot-base-core</artifactId>
    </dependency>
  </dependencies>
2、jeecg-boot-module-system 模块中添加了 jeecg-boot-module-jyjy 引用,在 jeecg-boot-parent 的pom.xml 中也自动添加了 jeecg-boot-module-jyjy 模块
jeecg-boot-module-system 模块:

jeecg-boot-parent 的 pom.xml 中:

然后通过 配置菜单、菜单赋权访问这个页面时报错,提示 资源未找到 :

但是,我将 jeecg-boot-module-jyjy 模块中的代码 移动到 jeecg-boot-module-demo 项目中后,这个菜单就可以正常访问了。

请教一下,我是什么地方弄错了啊?
 楼主| 发表于 2021-2-9 13:06:31 | 显示全部楼层
提交git,重启idea,刷新 maven
搞定。。
发表于 2023-2-28 11:22:52 | 显示全部楼层
遇到相同的问题,成功解决,感谢楼主
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表