Skip to content

Commit

Permalink
feat(819): 使用spring boot自带方式去开启virual threads (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
damingerdai authored Nov 30, 2023
1 parent c4ba1ae commit 1627256
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 29 deletions.
3 changes: 3 additions & 0 deletions deplyoments/k3s/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ data:
enabled: true
mime-types: application/json,application/xml,text/html,text/xml,text/plain,text/css,application/javascript
spring:
threads:
virtual:
enabled: true
data:
redis:
host: redis
Expand Down
29 changes: 0 additions & 29 deletions src/main/java/org/daming/hoteler/config/VirtualThreadConfig.java

This file was deleted.

3 changes: 3 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ server:
enabled: true
mime-types: application/json,application/xml,text/html,text/xml,text/plain,text/css,application/javascript
spring:
threads:
virtual:
enabled: true
data:
redis:
host: 127.0.0.1
Expand Down

0 comments on commit 1627256

Please sign in to comment.