给迷你服务去掉一些依赖,缩减打包大小
This commit is contained in:
@@ -19,7 +19,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
* @version 2018年1月10日
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnProperty(name="web.interceptor.log.enabled", havingValue="true", matchIfMissing=true)
|
||||
@ConditionalOnProperty(name="web.interceptor.log.enabled", havingValue="true", matchIfMissing=false)
|
||||
public class LogInterceptorConfig implements WebMvcConfigurer {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.io.IOException;
|
||||
* @version 2022-09-27
|
||||
*/
|
||||
@Controller
|
||||
@ConditionalOnProperty(name="file.isFileStreamDown", havingValue="true", matchIfMissing=true)
|
||||
@ConditionalOnProperty(name={"file.enabled","file.isFileStreamDown"}, havingValue="true", matchIfMissing=true)
|
||||
@Hidden
|
||||
public class UserfilesController extends BaseController {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping(value = "tags")
|
||||
@ConditionalOnProperty(name="web.core.enabled", havingValue="true", matchIfMissing=true)
|
||||
@ConditionalOnProperty(name={"config.enabled","web.core.enabled"}, havingValue="true", matchIfMissing=true)
|
||||
@Hidden
|
||||
public class TagsController extends BaseController {
|
||||
|
||||
|
||||
@@ -200,6 +200,10 @@ page:
|
||||
# 每页最大条数,防止分页过大导致系统缓慢或内存溢出
|
||||
maxPageSize: 999
|
||||
|
||||
# 基础配置(参数、模块、字典)
|
||||
config:
|
||||
enabled: true
|
||||
|
||||
# 用户相关
|
||||
user:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user