自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 SpringBoot中定时任务使用配置文件配置执行时间

SpringBoot中定时任务使用配置文件配置执行时间在传统的Spring项目中使用Spring Task设置定时任务,其执行时间配置到applicationContext.xml中指定执行方法即可;但是由于现在换做了SpringBoot框架,虽然Spring Task是集成在SpringBoot中的,但是大多是用注解直接把执行之间cron声明在了方法名上,这样不利于生产环境修改执行时间(PS:有尝试使用@Value取值后使用,未果所以换方式)原spring Task写法:@Scheduled(cro

2021-06-18 18:17:38 2787

原创 Nacos工程启动报错

spring boot使用nacos报错2020-10-17 14:41:32.833 ERROR 16016 — [ main] c.a.cloud.nacos.NacosConfigProperties : create config service error!properties=NacosConfigProperties{serverAddr=‘null’, encode=‘null’, group=‘DEFAULT_GROUP’, prefix=‘null’, fi

2020-10-17 14:45:30 609 2

原创 Seata分布式事务Caused by: java.lang.IllegalArgumentException:

Seata分布式事务出现错误:Caused by: java.lang.IllegalArgumentException: applicationId: , txServiceGroup: my_test_tx_grouporg.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalTransactionScanner’ defined in class path resou

2020-10-17 14:37:44 1762

原创 Nginx和Zuul的区别

Nginx和Zuul的区别不同点:首先 , Nginx是C语言开发,而 Zuul 是Java语言开发2)其次,Nginx负载均衡实现,采用服务器实现负载均衡,而Zuul负载均衡的实现是采用 Ribbon + Eureka 来实现本地负载均衡.Nginx适合于服务器端负载均衡,Zuul适合微服务中实现网关Nginx相比Zuul功能会更加强大,因为Nginx整合一些脚本语言( Nginx + lua )Nginc 是一个高性能的HTTP 和反向代理服务器, 也是一个 IMAP /

2020-10-14 19:45:48 594 1

原创 spring boot 实体类的属性不导入set方法报的错误

spring boot 实体类的属性不导入set方法报的错误EL1008E: Property or field ‘providers’ cannot be found on object of type ‘com.haochen.sm.pojo.Account’ - maybe not public or not valid?

2020-10-14 17:18:30 203

原创 没有在ServiceImpl层打@Service注解的错误

没有在ServiceImpl层打@Service注解的错误`org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.itheima.service.OrderService com.itheima.service.impl.OrderServiceImpl.orderService; nested exception is org.springframework.beans

2020-10-14 17:17:54 474

原创 Mybatis-plus代码生成器

package com.haochen.mp02;import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;import com.baomidou.mybatisplus.core.toolkit.StringPool;import com.baomidou.mybatisplus.generator.AutoGenerator;import com.baomidou.mybatisplus.generator.In

2020-10-14 17:00:08 136

原创 Mybatis-Plus服务器运行出现错误:Caused by: java.lang.NoSuchMethodException: com.baomidou.mybatisplus.cor

标题:Mybatis-Plus服务器运行出现错误:Caused by: java.lang.NoSuchMethodException: com.baomidou.mybatisplus.core.metadata.IPage.()问题描述:Caused by: java.lang.NoSuchMethodException: com.baomidou.mybatisplus.core.metadata.IPage.()解决方案:升级Mybatis-Plus版本...

2020-10-13 18:51:54 3596

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除