All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.mapway.document.resource.help.html Maven / Gradle / Ivy

There is a newer version: 3.20.0
Show newest version



    Mapway文档生成器使用说明
    
    
    
    
    



文档生成器说明

本文档生成器提供一个Web Servlet 和 辅助类 DocHelper.

Web Servlet 配置说明

在web.xml中做如下配置

				<servlet>
		<servlet-name>MapwayDocServlet</servlet-name>
		<servlet-class>cn.mapway.document.servlet.MapwayDocServlet</servlet-class>
		<init-param>
			<param-name>author</param-name>
			<param-value>[email protected]</param-value>
		</init-param>
		<init-param>
			<param-name>title</param-name>
			<param-value>测试接口</param-value>
		</init-param>
		<init-param>
			<param-name>subtitle</param-name>
			<param-value>副标题</param-value>
		</init-param>

		<init-param>
			<param-name>basePath</param-name>
			<param-value>http://localhost:8080/mapway-doc-ui/</param-value>
		</init-param>
		<init-param>
			<!--需要扫描的API包-->
			<param-name>scanPackages</param-name>
			<param-value>cn.mapway.document.test</param-value>
		</init-param>
		<init-param>
			<!--ANT 脚本安装目录-->
			<param-name>antHome</param-name>
			<param-value>c:\ant</param-value>
		</init-param>
		<init-param>
			<!--客户端连接器包名-->
			<param-name>connectorPackageName</param-name>
			<param-value>cn.mapway.api.connector</param-value>
		</init-param>
		<init-param>
			<!--客户端连接器类名-->
			<param-name>connectorClassName</param-name>
			<param-value>SolaApi</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
		</servlet>
		<!--Servlet 映射-->
		<servlet-mapping>
			<servlet-name>MapwayDocServlet</servlet-name>
			<url-pattern>/doc/*</url-pattern>
		</servlet-mapping>
©2016 mapway.cn




© 2015 - 2024 Weber Informatics LLC | Privacy Policy