👽 undertow性能优化

pull/18/head
ruibaby 2018-06-15 16:32:53 +08:00
parent 9ae4ac48e8
commit 0f0efa971f
4 changed files with 18 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public class StartupConfig implements ApplicationListener<ContextRefreshedEvent>
*/ */
private void loadActiveTheme() { private void loadActiveTheme() {
String themeValue = optionsService.findOneOption("theme"); String themeValue = optionsService.findOneOption("theme");
if (StringUtils.isNotEmpty("themeValue") && !StringUtils.equals(themeValue, null)) { if (StringUtils.isNotEmpty(themeValue) && !StringUtils.equals(themeValue, null)) {
BaseController.THEME = themeValue; BaseController.THEME = themeValue;
} else { } else {
//以防万一 //以防万一

View File

@ -500,6 +500,7 @@ public class HaloUtils {
return null; return null;
} }
/** /**
* *
* *
@ -553,4 +554,5 @@ public class HaloUtils {
} }
return result; return result;
} }
} }

View File

@ -1,5 +1,11 @@
server: server:
port: 8090 port: 8090
use-forward-headers: true
undertow:
io-threads : 2
worker-threads: 36
buffer-size: 1024
directBuffers: true
spring: spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource

View File

@ -108,6 +108,15 @@
float: left; float: left;
border-radius: 50%; border-radius: 50%;
margin-right: .7rem; margin-right: .7rem;
cursor: pointer;
-webkit-transition: 0.4s;
-webkit-transition: -webkit-transform 0.4s ease-out;
transition: transform 0.4s ease-out;
-moz-transition: -moz-transform 0.4s ease-out;
}
.native-list-one-img:hover{
transform: rotate(360deg);
} }
.native-list .native-list-one section { .native-list .native-list-one section {