VUE3+SpringBOOT学习笔记-部署jeecgboot项目(五)

1、  解决循环依赖

Action:

Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.

在main ->resources application.yml文件添加以下参数

spring:
   main:
   allow-circular-references: true

 2 解决依赖注入多个bean的问题

 Swagger2Config 类 Bean 添加@primary

/**
* 解决springboot2.6 和springfox不兼容问题
* @return
*/
@Bean
@Primary
public static BeanPostProcessor springfoxHandlerProviderBeanPostProcessor() {

3 redis 外网访问

3.1、/etc/init.d/redis_6379 stop

首先我们要先停止redis服务

3.2、vi redis.conf

3.3、找到bind 并将127.0.0.1 改为 0.0.0.0

重启服务

 /home/redis-4.0.0/src/redis-server  redis.conf

4 JeecgBoot启动提示:QRTZ_LOCKS表不存在

因为mysql大小写敏感导致

解决方案:
 mysql --help|grep 'my.cnf'

进入配置文件:

vim /etc/mysql/mysql.conf.d/mysqld.cnf

[mysqld]

lower_case_table_names=1

 systemctl restart mysqld
mysql> show global variables like '%lower_case%';

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值