有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何在e clipse中配置生成的源

您好,当我使用mapper注释时,我的代码在下面自动生成代码

地图绘制者-->;目标->;生成的源->;注释->;净->;世界->;汽车->;代理门户->;服务->;制图者->;UserMapperImp。爪哇

那么,我如何才能在我自己创建的mapper文件夹下生成

提前谢谢你


共 (1) 个答案

  1. # 1 楼答案

    在pom的插件中。xml添加以下内容例如,根据需要配置源:

        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <executions>
                <execution>
                    <id>add-source</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>add-source</goal>
                    </goals>
                    <configuration>
                        <sources>
                            <source>target/generated-sources/swagger/src/main/java</source>
                        </sources>
                    </configuration>
                </execution>
            </executions>
        </plugin>