Giter Club home page Giter Club logo

bmi3's Introduction

Swagger generated server

CSE-Java Pojo Server

Overview

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

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

2,com.service.bmi3.controller.Bmi3Impl这个类插入通过定义RpcSchema这个annotation,拦截用户rpc请求,并将处理的handler代理给bmi3Delegate类。

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

4,com.service.bmi3.controller.Bmi3这个类定义了由swagger.yaml里定义了的operation的函数footprint。它可以理解为是com.service.bmi3.controller.Bmi3Impl实现类的接口。

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

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

bmi3's People

Contributors

pan112358 avatar

Watchers

James Cloos avatar

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.