ApiBoot 2.1.5.RELEASE release, landing interface service solutions

Brief introduction

ApiBoot floor is the service's interface solutions, offers a range of components out of the box, to simplify integration of third-party frameworks through mainstream package, thereby increasing the efficiency of developers to develop, learning costs, lower barriers to entry, the true realization of the box ready to use! ! !

SpringBoot simple to know developers can write the security and stability of interface services, provides a wealth of security interfaces for multiple endpoints mobile terminal, Web terminal and so on.

ApiBoot dependent on SpringBoot, ApiBoot can be used to build stand-alone Java applications.

2.1.5.RELEASE update log

  1. New ApiBoot Alibaba Oss southwest Chengdu region
  2. Repair openfeign interceptor conflict ApiBoot Logging and Seata provided
  3. Repair ApiBoot Enhance Codegen entity creation, does not create problems thrown codegen.setting.json file
  4. Upgrade SpringBoot is 2.1.9.RELEASE
  5. Modify ApiBoot DataSource Switch multithreaded mode switch to Deque
  6. Framework modifications described source
  7. ReadMe public numbers do not fix display problems
  8. Banner fix output version error problem

Documentation & Source

ApiBoot document's official website: http: //apiboot.minbox.io

Source address: https: //gitee.com/minbox-projects/api-boot

Installation & Getting Started

Check the components used in the official reference documentation , please visit started with the first application ApiBoot

If you are to build the project using Maven, you need to add a version ApiBoot dependencies into your pom.xml file as follows:

 
  1. <dependencyManagement>
  2. <dependencies>
  3. <!--ApiBoot版本依赖-->
  4. <dependency>
  5. <groupId>org.minbox.framework</groupId>
  6. <artifactId>api-boot-dependencies</artifactId>
  7. <version>${lastVersion}</version>
  8. <scope>import</scope>
  9. <type>pom</type>
  10. </dependency>
  11. </dependencies>
  12. </dependencyManagement>

Note: lastVersion need to be replaced ApiBoot the latest version, visit the version dependency - 2. Get the latest ApiBoot dependent view.

Now incorporated components

Providing a plurality of internal components ApiBoot, brief use of the following components:

Link log component

Integration between the inside by minbox-logging open source framework, there is provided the use of a zero-intrusive distributed link log analysis frame, may be applied to the micro SpringCloud service applications, provides for acquisition of log Admin endpoint, analyze the log, the log alert notifications, service performance analysis Wait. By Admin Ui link can view real-time log information, online business services list.

Safety Components

By integrating internal SpringSecurity + OAuth2 two common resource security, authentication and authorization framework to ensure the safety of the service's interface, memory requires only a few lines of configuration to complete the integration , ApiBoot for SpringSecurity provides two ways a user query: memory ( memory), jdbc (database). And for OAuth2 provides a Token after the three ways to generate and store Client Information: memory, jdbc, redis and so on.

It can be configured directly using Token JWT format OAuth2 generated.

Interface document components

By integrating Swagger2to generate complete documentation of invasive, intrusive late documents will be replaced ApiBootSecurityOauthby default excluded swagger2related resource path (if custom integrated OAuth2 or SpringSecurity need to manually exclude Swagger resource path).

ORM component (persistent database component)

By encapsulating the Mybatis ApiBoot provided a suction frame mainstream ORM JPA, Mybatis, QueryDSL etc. integration framework MyBatis-Enhance Technology , CRUD provided inside a common method, without writing a line SQL persistence operations can be done on the data, there is provided a method named new rule of queries, dynamic queries and so on.

Code generation component

Mybatis-enhance ApiBoot provide a customized code generation widget, may correspond to data generating entity generates, dynamic query entity is a database table, mybatis-enhance-codegen is a Maven Plugin, the configuration database according to the link information specified in the configuration table filter , all the tables, generating a table of the specified prefix.

Multiple Data Source Component

ApiBoot provide data for a scene of a multi-source switching automated way switch, provided inside the source configured to implement two data types, namely: Druid, HikariCP, in the class, arranged in the manner annotation method is automatically switched to the configuration data section source, if not the default configuration data source is used.

Collate components

ApiBoot provided for users Mybatis persistence framework of automated pagination plug the mybatis-the Pageable , which is a plug-in based Mybatis Plugin implemented, can automatically query based paging parameters passed a paging message, such as: total number of pages, each page the number of the current page, the existence of previous, next and so on.

12 kinds of mainstream support database.

Limiting components

ApiBoot for a single application, applications are distributed cluster provides a way of limiting, Google provides a way of limiting token bucket for a single application, providing a Redis Lua way for service cluster environment.

Limiting configuration-second QPS traffic.

Ali cloud OSS components

Ali cloud OSS Integration SDK provides a complete file to upload, download and other methods to achieve, out of the box.

Ali Cloud SMS components

Ali cloud provides integrated SMS service, a simple configuration can be completed SMS, SMS worldwide service, friendly, efficient, intelligent interconnection of communications capabilities to help companies quickly build up customer contact channels.

Ali cloud mail component

Ali cloud integrated Mail service provided, the simple configuration, the wrapper class provide a few lines of code can be completed ApiBoot mail transmission.

Examples

ApiBoot provides examples of each component in the source api-boot-samples collation assembly according to the directory name.

user's guidance

Visit the blog author Kou De juvenile growth path for updated guidelines ApiBoot, within MinBox open source open source framework.

Guess you like

Origin www.oschina.net/news/111128/apiboot-2-1-5-released