Score
0
Watch 128 Star 389 Fork 111

叶大侠 / JApiDocsJavaApache-2.0

试用1.4.3 无法生成文档

Backlog
newerdragon  Opened this issue

没用起来.. 也没报错 也没生成文档..

<dependency>
	<groupId>io.github.yedaxia</groupId>
	<artifactId>japidocs</artifactId>
	<version>1.4.3</version>
</dependency>
package com.sps.fzglserver.fzgl.com.sps.register.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import io.github.yedaxia.apidocs.Docs;
import io.github.yedaxia.apidocs.DocsConfig;

/**
 * 用户注册
 * @author 
 *
 */
@Controller
@RequestMapping("/registerController")
public class RegisterController {
	
	/**
	 * 输出消息
	 * @return
	 */
	@RequestMapping("/say")
	@ResponseBody
	public String say() {
		System.out.println("222");
		return "msg";
	}
	
	public static void main(String[] args) {
		DocsConfig config = new DocsConfig();
		config.setProjectPath("/"); // 项目根目录
		config.setProjectName("管理系统"); // 项目名称
		config.setApiVersion("V1.0");       // 声明该API的版本
		config.setDocsPath("docs"); // 生成API 文档所在目录
		config.setAutoGenerate(Boolean.TRUE);  // 配置自动生成
		Docs.buildHtmlDocs(config); // 执行生成文档
	}
	
}

输入图片说明

total 1 participants

Comments (0)

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority