Comments (9)
请帖一下你的代码
from apigcc.
要确保能读到源码,可以通过配置 denpendency的方式
from apigcc.
/** * 新增组织机构 * * @param unit 组织机构信息 * @param request * @return * @ignore unit.createUser */ @PostMapping("/createUnit") public ResultData createUnitInfo(@RequestBody @Valid Unit unit, HttpServletRequest request) { return unitService.createUnit(unit, UserUtil.getUser(request)); }
maven:
<!--rest api doc --> <plugin> <groupId>com.github.apiggs</groupId> <artifactId>apiggs-maven-plugin</artifactId> <version>1.6</version> <executions> <execution> <phase>compile</phase> <goals> <goal>apiggs</goal> </goals> </execution> </executions> <configuration> <production>api</production> <out>src/main/resources/static</out> </configuration> </plugin>
from apigcc.
- ResultData 是公共包里的么?
在maven中配置ResultData源码位置
<configuration>
<dependency>ResultData源码位置</dependency>
</configuration>
- @ignore 加在方法上时,该方法会忽略;请加在Unit的字段createUser的注释中
from apigcc.
是的,公共包里面的类无法解析吗
from apigcc.
由于不是运行时,无法找到公共包在哪,需要手动配置公共包的位置
from apigcc.
如何配置位置
from apigcc.
<configuration>
<dependency>ResultData源码位置</dependency>
</configuration>
from apigcc.
好的,谢谢您
from apigcc.
Related Issues (20)
- 什么原因能造成没有返回结果 HOT 2
- 是否必填信息无法体现 HOT 2
- 源码与 Maven 仓库中 jar 不匹配 HOT 1
- 项目接口非常多,生成的html文档很大,有没有办法分组(注解)生成 HOT 2
- 扫描到非 API 接口的 Controller HOT 2
- 泛型问题
- 泛型无法解析 HOT 2
- name属性无法解析 HOT 1
- 项目很nick,可以加一个mock库来mock数据,解决泛型mock的问题
- 如何确定response status? HOT 2
- 提两个问题 HOT 1
- 生成的文档入参未能解析 HOT 1
- 入参和返回值的解析不全 HOT 2
- 老哥你官网挂啦 HOT 1
- 显示 java.nio.file.InvalidPathException
- controller 判断问题 HOT 1
- 响应内容不显示 HOT 3
- 接口响应接口怎么展示
- 建议 + 问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apigcc.