Code Monkey home page Code Monkey logo

Swagger generated server

CSE Spring MVC Server

Overview

这里的代码是根据用户提供的swagger.yaml文件自动生成。生成的代码总的来说分成以下几类:

1,入口main函数在com.service.wxtest.WxtestApplication这个类中。

2,com.service.wxtest.controller.WxtestImpl这个类插入通过定义springmvc的annotation,拦截用户请求、解析参数,并将处理的handler代理给wxtestDelegate类。

3,com.service.wxtest.controller.WxtestDelegate类是用户实现具体handler实现的类,理论上只需要用户在这个类里面实现业务逻辑。

4,resource目录下定义了一些配置文件,包括log4j的配置文件,微服务的配置信息,以及swagger协议文件等等。

5,特别注意两点:microservice.yaml里面配置信息要填写正确,生成的有可能有些偏差;swagger.yaml里面的x-java-interface配置项一定要指定为com.service.wxtest.controller.Wxtest。

m01's Projects

gs-spring-boot icon gs-spring-boot

Building an Application with Spring Boot :: Learn how to build an application with minimal configuration.

man01 icon man01

Auto created by ServiceStage!

spring-cloud-huawei icon spring-cloud-huawei

Spring Cloud Huawei is a framework that makes it easier and productive to develop microservices with Spring Cloud.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.