Closed zhuangzibin closed 2 years ago
check spring.r2dbc.pool.max-life-time: 30m
default -1
It looks like pool just allocating new connections when you start your application. 10 of them. And it's just an initialization log for every connection in a pool.
看起来池只是在您启动应用程序时分配新连接。其中10个。它只是池中每个连接的初始化日志。
Yes.r2dbc-pool 0.8.9 bug,0.9.0 fixed.
Bug Report
Versions
Current Behavior
When i executed my sql once time,the server executed some sql multiple times.It can be repeated every time.
Table schema
Input Code
```sql -- your SQL here; create table equipment_factory_user_record ( id bigserial constraint equipment_factory_user_record_pk primary key, account varchar(19) not null, created timestamp not null, created_by bigint not null, updated timestamp, updated_by bigint, organization_id bigint, deleted boolean default false not null ); ```Steps to reproduce
post -> controller -> server -> repository -> database
Input Code
```java // your code here; @Data @ToString @NoArgsConstructor @AllArgsConstructor @Accessors(chain = true) @EqualsAndHashCode(callSuper = true) @Table("equipment_factory_user_record") public class EquipmentFactoryUserRecord extends BaseEntity { public static final String COLUMN_ID = "id"; public static final String COLUMN_ACCOUNT = "account"; @Id @Column(COLUMN_ID) private Long id; @Column(COLUMN_ACCOUNT) private String account; } ```Expected behavior/code
do not execute this sql everyTime
Possible Solution
Additional context