
springboot
qq_28967139
这个作者很懒,什么都没留下…
展开
-
新项目报:Caused by: javax.net.ssl.SSLHandshakeException:
新项目启动,报错,错误见下面三个图片com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.···TXTCaused by: com.m原创 2022-03-18 11:52:33 · 4405 阅读 · 0 评论 -
springboot+rabbitmq,消费者
第一步,创建消费者,consumer类import com.rabbitmq.client.Channel;import org.springframework.amqp.core.Message;import org.springframework.amqp.rabbit.annotation.RabbitHandler;import org.springframework.amqp.rabbit.annotation.RabbitListener;import org.springfram.原创 2021-07-30 11:29:43 · 367 阅读 · 0 评论 -
springboot+rabbitmq
效果第一步:引入pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> </dependencies> ```..原创 2021-07-30 10:51:21 · 138 阅读 · 0 评论 -
rabbitmq配置,生产者,消费者
配置文件生产者配置消费者容器@Configurationpublic class OverdueRabbitmqConfig { @Value("${overdue.listener.prefetch}") private Integer prefetch; @Value("${overdue.consumer.concurrency}") private Integer concurrentconsumers; @Bean(name = "o.原创 2021-07-29 19:39:32 · 632 阅读 · 0 评论 -
rabbitmq页面配置
添加队列第二部,加入已经创建交换机了,将队列绑定交换机原创 2021-07-29 17:24:56 · 325 阅读 · 0 评论 -
有关Mybatis-Plus中Service和Mapper的分析
Mapper方式,可以实现简单的CRUDService方式,可以实现更加丰富的CRUD,但是必须依赖Mapper,也就是必须编写mapper接口原创 2021-07-15 17:28:13 · 3027 阅读 · 0 评论 -
Springboot@Autowired时标红
如果springboot项目中,在Autowired时,标红,如果运行正常的话,是没有问题的。Settings,找到 Inspection,并选择其中的 Spring Core -> Code -> Autowiring for Bean Class,将 Error 改为 Warning原创 2021-07-15 11:41:07 · 458 阅读 · 0 评论 -
Connected to the target VM, address: ‘127.0.0.1:62995‘, transport: ‘socket‘
【问题一】问题还原:spring boot maven 报错 connected to the target VM, address: ‘127.0.0.1:28481’, transport: ‘socket’问题描述:idea 直接运行 springbootAplication 启动类,无法启动web项目,也没有报错信息。解决办法 :由于项目意外关闭,资源没有释放。结束系统的 java 进程。2.引入依赖包。org.springframework.bootspring-boot-s转载 2021-07-13 17:32:23 · 34272 阅读 · 0 评论 -
lombok@Builder注解相关问题
参考文章:https://blog.youkuaiyun.com/weixin_33843409/article/details/91472200原创 2021-07-06 15:41:56 · 91 阅读 · 0 评论 -
idea开发springboot项目静态资源访问问题
问题描述:springboot开发web项目,在resources/static下面放置静态资源,例如一张图片;然后启动该springboot项目,通过http://localhost:8080/bbb.jpg,可以访问到该图片。继续再resources下新建public,resources,META-INF/resources,将这三个目录下放置静态资源,例如一张图片,通过浏览器就无法访问。解决办法:在maven中选择,项目->Lifecycle->clean,运行。或者直接将target原创 2021-06-01 16:01:35 · 1418 阅读 · 0 评论 -
springboot数据库版本与驱动报错:Loading class `com.mysql.jdbc.Driver‘. This is deprecated
Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.数据库版本8,使用com.mysql.jdbc.Drive原创 2021-05-19 11:02:13 · 290 阅读 · 0 评论