jeecgboot新建moudle,但是访问404,需要在open moudle setting 里面设置
首先需要确定以下3个pom.xml
最最外层的pom.xml
最最外层的pom.xml
<modules><module>jeecg-boot-base-core</module><module>jeecg-module-demo</module><module>jeecg-module-system</module><module>jeecg-module-voucher</module>----新加的module</modules>
jeecg-moudle-start的pom.xml
<dependencies><!-- SYSTEM 系统管理模块 --><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-system-biz</artifactId><version>${jeecgboot.version}</version></dependency><!-- DEMO 示例模块 --><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-module-demo</artifactId><version>${jeecgboot.version}</version></dependency><!-- voucher 示例模块 --><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-module-voucher</artifactId><version>${jeecgboot.version}</version></dependency></dependencies>
jeecg-module-voucher本身的pom.xml,可以参考demo里的内容
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><parent><artifactId>jeecg-boot-parent</artifactId><groupId>org.jeecgframework.boot</groupId><version>3.5.3</version></parent><modelVersion>4.0.0</modelVersion><artifactId>jeecg-module-voucher</artifactId><dependencies><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-boot-base-core</artifactId></dependency><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-annotation</artifactId><version>3.5.1</version><scope>compile</scope></dependency></dependencies></project>
接下来才是重中之重,需要在open moudle setting 里面设置,选中jeecg-moudle-voucher然后右击,最下面有一个open moudle setting,打开,然后找到jeecg-moudle-start,点击dependencies,然后点击+将jeecg-moudle-voucher加入其中,然后重新install项目即可