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() {
|
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 {
|
||||||
//以防万一
|
//以防万一
|
||||||
|
|
|
@ -500,6 +500,7 @@ public class HaloUtils {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 百度主动推送
|
* 百度主动推送
|
||||||
*
|
*
|
||||||
|
@ -553,4 +554,5 @@ public class HaloUtils {
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue