init
This commit is contained in:
@@ -21,7 +21,7 @@ spring:
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
||||
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
||||
url: jdbc:mysql://localhost:4306/xq?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||||
url: jdbc:mysql://10.0.12.11:4306/xq?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||||
username: root
|
||||
password: 383200134
|
||||
# 从库数据源
|
||||
@@ -52,7 +52,7 @@ spring:
|
||||
spring:
|
||||
redis:
|
||||
# 地址
|
||||
host: localhost
|
||||
host: 10.0.12.11
|
||||
# 端口,默认为6379
|
||||
port: 9379
|
||||
# 数据库索引
|
||||
@@ -64,11 +64,11 @@ spring:
|
||||
# 是否开启ssl
|
||||
ssl: false
|
||||
rabbitmq:
|
||||
addresses: 127.0.0.1 #ip地址
|
||||
addresses: 10.0.12.11 #ip地址
|
||||
username: admin # 账号
|
||||
password: 383200134 # 密码
|
||||
port: 5672
|
||||
virtual-host: /xq
|
||||
virtual-host: /cai-dev
|
||||
redisson:
|
||||
# redis key前缀
|
||||
keyPrefix:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.ruoyi.xq.controller.app;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
@@ -20,6 +21,7 @@ import java.util.List;
|
||||
@RestController
|
||||
@RequestMapping("/api/home")
|
||||
@Tag(name = "首页相关接口")
|
||||
@SaIgnore
|
||||
public class HomeAppController {
|
||||
@Autowired
|
||||
private UserService userService;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.ruoyi.xq.controller.app;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
@@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@RequestMapping("/api/setting")
|
||||
@Tag(name = "获取设置相关接口")
|
||||
@SaIgnore
|
||||
public class SettingAppController {
|
||||
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user