refactor: 优化配置

This commit is contained in:
zhouhao 2025-05-13 14:03:57 +08:00
parent c57dbda68a
commit dab9244249
3 changed files with 6 additions and 7 deletions

View File

@ -1,15 +1,9 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="JetLinksApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<option name="ACTIVE_PROFILES" value="dev,local" />
<additionalParameters>
<param>
<option name="name" value="server.port" />
<option name="value" value="8801" />
</param>
</additionalParameters>
<module name="jetlinks-standalone" />
<option name="SPRING_BOOT_MAIN_CLASS" value="org.jetlinks.community.standalone.JetLinksApplication" />
<option name="VM_PARAMETERS" value="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.scripting/javax.script=ALL-UNNAMED -XX:+EnableDynamicAgentLoading" />
<option name="VM_PARAMETERS" value="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.scripting/javax.script=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED -XX:+EnableDynamicAgentLoading" />
<method v="2">
<option name="Make" enabled="true" />
</method>

View File

@ -16,6 +16,8 @@ java.base/java.text=ALL-UNNAMED \
java.base/java.math=ALL-UNNAMED \
--add-opens \
java.scripting/javax.script=ALL-UNNAMED \
--add-opens \
java.base/java.time=ALL-UNNAMED \
-Dreactor.schedulers.defaultBoundedElasticOnVirtualThreads=true \
-Djava.security.egd=file:/dev/./urandom \
org.springframework.boot.loader.launch.PropertiesLauncher

View File

@ -242,6 +242,9 @@ springdoc:
path: /v3/api-docs
swagger-ui:
path: /swagger-ui.html
use-root-path: false
enabled: true
disable-swagger-default-url: true
# packages-to-scan: org.jetlinks
group-configs:
- group: 设备管理相关接口