基于mall4j产品的二开项目后端
lee
2024-12-18 efdb99f8cecc4afb592afad79c761081d5d5cf22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.yami.shop.api.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
 
/**
 * @author FrozenWatermelon
 * @date 2020/12/15
 */
@ConfigurationProperties(prefix = "mall4j.order.thread")
public class ThreadPoolConfigProperties {
 
    private Integer coreSize;
 
    private Integer maxSize;
 
    private Integer keepAliveTime;
 
    public Integer getCoreSize() {
        return coreSize;
    }
 
    public void setCoreSize(Integer coreSize) {
        this.coreSize = coreSize;
    }
 
    public Integer getMaxSize() {
        return maxSize;
    }
 
    public void setMaxSize(Integer maxSize) {
        this.maxSize = maxSize;
    }
 
    public Integer getKeepAliveTime() {
        return keepAliveTime;
    }
 
    public void setKeepAliveTime(Integer keepAliveTime) {
        this.keepAliveTime = keepAliveTime;
    }
 
    @Override
    public String toString() {
        return "ThreadPoolConfigProperties{" +
                "coreSize=" + coreSize +
                ", maxSize=" + maxSize +
                ", keepAliveTime=" + keepAliveTime +
                '}';
    }
}