0

を表示しません。 私は打撃を与えられた質問でコードをつけています。 私は下のリンクを次のようだ:闊歩実装の春のWeb MVCは、私が闊歩して春のWeb MVCを実装しようとしていますが、問題は、私はモデルのスキーマを取得できなかったですモデルスキーマ

http://raibledesigns.com/rd/entry/documenting_your_spring_api_with

問題が闊歩UIが表示されましたが、ポストの要求のために、それはモデルスキーマを表示していなかったということでした。

のpom.xml:

<dependency> 
    <groupId>com.mangofactory</groupId> 
    <artifactId>swagger-springmvc</artifactId> 
    <version>0.5.2</version> 
</dependency> 

Spring.xml:

<mvc:annotation-driven /> 
    <context:component-scan base-package="com.ga" /> 
    <mvc:default-servlet-handler /> 
    <bean id="documentationConfig" class="com.mangofactory.swagger.configuration.DocumentationConfig" /> 

    <context:property-placeholder location="classpath:spring/application.properties" 
     system-properties-mode="OVERRIDE" /> 

お客様Controller.java:

@Api(value="CustomerController",description="Customer Controller") 
@RestController 
public class CustomerController { 

    @ApiOperation(value="save",notes="These Method is used to Save all Customer Details with its Deployment ") 
    @RequestMapping(value = "/save", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) 
    public ResponseEntity<Customer> saveCustomerDetails(@RequestBody Customer customer) throws CustomerException { 

    } 
} 

アプリケーションプロパティ:

documentation.services.version=1.0 
documentation.services.basePath=http://localhost:9090/XYZ 

答えて

関連する問題