微小Web 支持只连接业务库,不使用自带sys表

This commit is contained in:
thinkgem
2023-11-16 10:22:45 +08:00
parent d828879568
commit bcbdb18e15
5 changed files with 10 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ import com.jeesite.modules.sys.service.ConfigService;
*/ */
@Controller @Controller
@RequestMapping(value = "${adminPath}/sys/config") @RequestMapping(value = "${adminPath}/sys/config")
@ConditionalOnProperty(name="web.core.enabled", havingValue="true", matchIfMissing=true) @ConditionalOnProperty(name={"config.enabled","web.core.enabled"}, havingValue="true", matchIfMissing=true)
@Hidden @Hidden
public class ConfigController extends BaseController { public class ConfigController extends BaseController {

View File

@@ -40,7 +40,7 @@ import java.util.Map;
*/ */
@Controller @Controller
@RequestMapping(value = "${adminPath}/sys/dictData") @RequestMapping(value = "${adminPath}/sys/dictData")
@ConditionalOnProperty(name="web.core.enabled", havingValue="true", matchIfMissing=true) @ConditionalOnProperty(name={"config.enabled","web.core.enabled"}, havingValue="true", matchIfMissing=true)
@Hidden @Hidden
public class DictDataController extends BaseController { public class DictDataController extends BaseController {

View File

@@ -33,7 +33,7 @@ import java.util.Map;
*/ */
@Controller @Controller
@RequestMapping(value = "${adminPath}/sys/dictType") @RequestMapping(value = "${adminPath}/sys/dictType")
@ConditionalOnProperty(name="web.core.enabled", havingValue="true", matchIfMissing=true) @ConditionalOnProperty(name={"config.enabled","web.core.enabled"}, havingValue="true", matchIfMissing=true)
@Hidden @Hidden
public class DictTypeController extends BaseController { public class DictTypeController extends BaseController {

View File

@@ -38,7 +38,7 @@ import java.util.List;
*/ */
@Controller @Controller
@RequestMapping(value = "${adminPath}/sys/module") @RequestMapping(value = "${adminPath}/sys/module")
@ConditionalOnProperty(name="web.core.enabled", havingValue="true", matchIfMissing=true) @ConditionalOnProperty(name={"config.enabled","web.core.enabled"}, havingValue="true", matchIfMissing=true)
@Hidden @Hidden
public class ModuleController extends BaseController { public class ModuleController extends BaseController {

View File

@@ -57,7 +57,7 @@ jdbc:
# # Mysql 数据库配置 # # Mysql 数据库配置
# type: mysql # type: mysql
# driver: com.mysql.cj.jdbc.Driver # driver: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://127.0.0.1:3306/jeesite_v5?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai # url: jdbc:mysql://127.0.0.1:3306/jeesite_mini?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai
# username: root # username: root
# password: 123456 # password: 123456
# testSql: SELECT 1 # testSql: SELECT 1
@@ -114,7 +114,11 @@ adminPath: /a
# 前端基础路径 # 前端基础路径
frontPath: /f frontPath: /f
# 用户权限相关 # 配置相关功能(参数、模块、字典)
config:
enabled: false
# 用户权限相关(用户、角色、菜单)
user: user:
enabled: false enabled: false