xjx_24 发表于 2020-3-27 14:22:06

jeecg-boot建立新模块项目引用Common模块报错问题

你好,请问为什么我新建一个模块后在Controller类调用common模块中的ISysBaseAPI公共接口会一直报找不到这个bean,新建模块的pom文件也以及依赖了common模块,使用ISysBaseAPI也用了@Autowired自动注入。

pom文件:
<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">
    <modelVersion>4.0.0</modelVersion>
    <artifactId>jeecg-boot-module-api</artifactId>
    <version>2.1.4</version>

    <parent>
      <groupId>org.jeecgframework.boot</groupId>
      <artifactId>jeecg-boot-parent</artifactId>
      <version>2.1.4</version>
    </parent>

    <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/content/repositories/jeecg</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
      </repository>
    </repositories>

    <dependencies>

      <dependency>
            <groupId>org.jeecgframework.boot</groupId>
            <artifactId>jeecg-boot-base-common</artifactId>
            <version>2.1.4</version>
      </dependency>

      <dependency>
            <groupId>org.jeecgframework</groupId>
            <artifactId>jeewx-api</artifactId>
            <version>1.3.1</version>
      </dependency>

      <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.4</version>
      </dependency>
    </dependencies>

    <build>
      <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
      </plugins>
    </build>
</project>
页: [1]
查看完整版本: jeecg-boot建立新模块项目引用Common模块报错问题