1 同时启动SpringBoot的http和Netty
https://juejin.im/post/5bd584bc518825292865395d
https://www.jianshu.com/p/2a2562f85241
https://juejin.cn/post/6844903700746485767 (推荐这一篇)
2 只启用Netty
https://juejin.cn/post/6844904110576107534
3 Spring Boo[......]
1 同时启动SpringBoot的http和Netty
https://juejin.im/post/5bd584bc518825292865395d
https://www.jianshu.com/p/2a2562f85241
https://juejin.cn/post/6844903700746485767 (推荐这一篇)
2 只启用Netty
https://juejin.cn/post/6844904110576107534
3 Spring Boo[......]
# async executor
async:
corePoolSize: 20
maxPoolSize: 200
queueCapacity: 10000
然后代码中注入
@Autowired
private SpringAsyncExecutor asyncExecutor;
使用
Future<Map<Integer, String>> xxxFuture =
asyncExecutor.a[......]
一般来说都是在Nginx上配证书的
也有的情况是需要直接在Spring Boot上直接搞起
# https
server.port: 443
server.ssl:
key-store: "classpath:server.pfx"
key-store-password: q0yDlrAB
keyStoreType: PKCS12
证书放在server/resource根目录下的server.pfx
如果想同时开启http支持:
@Configuratio[......]
1 基础接入配置
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfiguration extends AbstractWebSocketMessageBrokerConfigurer {
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
config.e[......]