mirror of https://github.com/halo-dev/halo
👽 undertow性能优化
parent
9ae4ac48e8
commit
0f0efa971f
|
@ -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 {
|
||||
//以防万一
|
||||
|
|
|
@ -500,6 +500,7 @@ public class HaloUtils {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 百度主动推送
|
||||
*
|
||||
|
@ -553,4 +554,5 @@ public class HaloUtils {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue