Bee2.1.7 supports Spring Boot 3.0.8 to solve the Redis cache avalanche problem; dynamic data sources are easy to set

The general trend of the world, the long-term must be united!
Hibernate/MyBatis+ plus +Sharding JDBC + Jpa+ Spring data+ GraphQL+ App ORM (Android, Hongmeng)= Bee

Spring Cloud microservices are more convenient to use databases: Bee + Spring Boot ; easily support multiple data sources, Sharding, Mongodb.

To integrate a bunch of tools, it is better to use only one small and powerful tool. Just like the data source connection pool Hikari in the JAVA world, although the file is small, the function is not bad!

Bee  2.1.7  integrates  Spring-boot  boot 3.0.8

Spring Cloud microservices are more convenient to use databases: Bee + Spring Boot ; easily support multiple data sources, Sharding, Mongodb.

Faster development of new combinations of Spring Cloud microservices, Bee integrates Spring Boot, allowing you to instantly have two rapid development tools!

ORM Bee Sharding is so simple, transparent to development, does not affect business, easy to use, small files, good performance; supports Mongodb , supports JDBC , also supports Android and Harmony; can use many different types of databases at the same time .   

Bee, a Java ORM tool in the new era of the Internet, is faster, simpler, more automatic, fast in development, fast in operation, and smarter

Spring Boot  is used to simplify the initial construction and development process of new Spring applications. The framework uses a specific approach to configuration,
so that developers no longer need to define boilerplate configuration. In this way, Spring Boot  can help us with rapid application development .


And provide bee-spring-boot-starter.

maven dependencies:

<!-- https://mvnrepository.com/artifact/org.teasoft/bee-spring-boot -->
<dependency>
    <groupId>org.teasoft</groupId>
    <artifactId>bee-spring-boot</artifactId>
    <version>2.1.7.boot3.0.8</version>
</dependency>

gradle:

implementation group: 'org.teasoft', name: 'bee-spring-boot', version: '2.1.7.boot3.0.8'

Use the corresponding starter directly:

<dependency>
    <groupId>org.teasoft</groupId>
    <artifactId>bee-spring-boot-starter</artifactId>
    <version>2.1.7.boot3.0.8</version>
    <type>pom</type>
</dependency>

Bee also integrates other versions of spring boot,

https://mvnrepository.com/artifact/org.teasoft/bee-spring-boot

V2.1.7 (2023.07.01・LTS version)

1. Add executable sql format (requires configuration: bee.osql.showSql.sqlFormat=true)
2. The second-level cache supports random setting of expiration time, solving the cache avalanche problem
3. DdlViaExcel.createTable is created through the information in the excel sheet page Database table, only part can be created
4. Support Spring boot 3.0, dynamic configuration
5. Improve Sharding ThreadPool, you can customize the size of the number of execution threads for sharding operations
6. Improve the problem of obtaining SQLiteDatabase for Android multi-threaded operations

Example of use:

#1.解决缓存雪崩问题
#二级缓存时间(单位秒)
bee.osql.cache.levelTwoTimeout=100
bee.osql.cache.randTimeoutRate=0.2
则二级缓存时间会随机在[80,120]内取。

#2.sql格式化
#显示可运行sql,直接复制,就可以在DB客户端工具(如navicat)运行。
bee.osql.showSql.showExecutableSql=true  
# since 2.1.7 =true时,可格式化sql
bee.osql.showSql.sqlFormat=false

#3.
#since 2.1.7 分片执行器线程池大小; 当实现线程数少于配置的线程池时,会使用少的,以提高性能。
#bee.dosql.sharding.executorSize=0
 

Bee V2.1.7

https://www.oschina.net/news/247952/bee-2-1-7-released

 

 demo  project:

https://gitee.com/automvc/bee-starter-demo

 

Few main interfaces, easy to use, low learning cost

The main object-oriented and custom sql, stored procedure interface :

Good performance :

 

Some application examples show:
 

Next feature preview:

What other functions do you want to add, please let us know in the comment area!

 

Project homepage on Code Cloud:

https://gitee.com/automvc/bee-springboot

https://gitee.com/automvc/bee

github:

https://github.com/automvc/bee

Guess you like

Origin www.oschina.net/news/249540