skyouc
4 天以前 d51f64c1f0105d4b18aa8344c11e47827730a40c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.vincent.rsf.server.common.config;
 
import com.vincent.rsf.server.common.domain.QueueTask;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
 
import java.util.concurrent.LinkedBlockingQueue;
 
/**
 * Created by vincent on 12/19/2023
 */
@Configuration
@ComponentScan(value = "com.vincent.rsf.common.config")
public class BeanConfig {
 
    @Bean
    public LinkedBlockingQueue<QueueTask> unlockTaskQueue() {
        return new LinkedBlockingQueue<>();
    }
 
}