👽 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() {
String themeValue = optionsService.findOneOption("theme");
if (StringUtils.isNotEmpty("themeValue") && !StringUtils.equals(themeValue, null)) {
if (StringUtils.isNotEmpty(themeValue) && !StringUtils.equals(themeValue, null)) {
BaseController.THEME = themeValue;
} else {
//以防万一

View File

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

View File

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

View File

@ -108,6 +108,15 @@
float: left;
border-radius: 50%;
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 {