随笔分类 -  SpringBoot_relevant

Springboot相关问题
摘要:TestUser.class package com.sz.web.domain.local.entity;import com.baomidou.mybatisplus.annotation.TableName;import lombok.AllArgsConstructor;import lom 阅读全文
posted @ 2020-12-04 11:49 Curedfisher 阅读(292) 评论(0) 推荐(0) 编辑
摘要:一、注解(annotations)列表 @SpringBootApplication:包含了@ComponentScan、@Configuration和@EnableAutoConfiguration注解。其中@ComponentScan让spring Boot扫描到Configuration类并把 阅读全文
posted @ 2020-09-02 10:13 Curedfisher 阅读(188) 评论(0) 推荐(0) 编辑
摘要:1.什么是SpringBoot监控中心? 2.为什么要使用SpringBoot监控中心? 阅读全文
posted @ 2019-11-28 16:03 Curedfisher 阅读(163) 评论(0) 推荐(0) 编辑
摘要:1.scheduled定时任务类:ScheduledDemo.java package com.nantian.scheduled; import java.util.Date; import org.springframework.scheduling.annotation.Scheduled;i 阅读全文
posted @ 2019-11-26 08:15 Curedfisher 阅读(1292) 评论(3) 推荐(0) 编辑
摘要:@component (把普通pojo实例化到spring容器中,相当于配置文件中的 <bean id="" class=""/>)泛指各种组件,就是说当我们的类不属于各种归类的时候(不属于@Controller、@Services等的时候),我们就可以使用@Component来标注这个类 阅读全文
posted @ 2019-11-26 08:02 Curedfisher 阅读(238) 评论(0) 推荐(0) 编辑
摘要:转载URL:https://blog.csdn.net/noaman_wgs/article/details/80984873 阅读全文
posted @ 2019-11-25 10:09 Curedfisher 阅读(215) 评论(0) 推荐(0) 编辑
摘要:0.项目目录截图 springboot的版本: <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.0.RELEASE</versio 阅读全文
posted @ 2019-11-24 17:33 Curedfisher 阅读(1299) 评论(0) 推荐(0) 编辑
摘要:1.不要随便改测试包名,我就是因为这个错的!!! 2.有的是pom.xml文件中引入了junit测试的两个jar包 3.其他问题百度就行 阅读全文
posted @ 2019-11-22 10:42 Curedfisher 阅读(1240) 评论(0) 推荐(0) 编辑
摘要:org.springframework.context.annotation.Configuration 从Spring3.0,@Configuration用于定义配置类,可替换xml配置文件,被注解的类内部包含有一个或多个被@Bean注解的方法,这些方法将会被AnnotationConfigApp 阅读全文
posted @ 2019-11-21 15:23 Curedfisher 阅读(184) 评论(0) 推荐(0) 编辑
摘要:1.配置rabbitMQ 需要把以上配置文件加载到spring容器,在appliacationContext.xml中添加如下内容: 注意:无需配置监听,因为服务器端(生产者只需要将消息发送到交换机即可),无需自己监听自己.监听是在消费者端配置的 2.在service层实现消息发送 代码: MAPP 阅读全文
posted @ 2019-11-20 14:55 Curedfisher 阅读(275) 评论(0) 推荐(0) 编辑
摘要:但是,非持久化要比持久化速度更快. 队列是否需要持久化:看需求 阅读全文
posted @ 2019-11-20 14:29 Curedfisher 阅读(609) 评论(0) 推荐(0) 编辑
摘要:1.spring整合rabbitMQ配置文件 rabbitmq-context.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2019-11-20 11:47 Curedfisher 阅读(120) 评论(0) 推荐(0) 编辑
摘要:队列截图,去rabbitMq.com去找学习文档 第一种模式:简单模式 缺点:没有实现解耦,比如说购物车和搜索,需要创建两个队列 第二种模式:work模式 上图注意:只能有一个消费者获取到消息;谁先拿到呢?靠争抢,哪个争抢到给哪个. 应用场景: 比如说现在有一个系统,这个系统作用是写数据到数据库,但 阅读全文
posted @ 2019-11-19 16:40 Curedfisher 阅读(611) 评论(0) 推荐(0) 编辑
摘要:1.MQ为Message Queue,消息队列是应用程序和应用程序之间的通信方法 2. 多种开发语言支持,其实就是一个驱动,如连接数据库的mysql驱动,oracle驱动等. 3. 4.采用以下语言开发: java是面向对象的;c是面向过程的;Erlang是面向并发的; 5.官网 rabbitMQ. 阅读全文
posted @ 2019-11-19 11:59 Curedfisher 阅读(546) 评论(0) 推荐(0) 编辑
摘要:转载URL:https://blog.csdn.net/lizc_lizc/article/details/80722090 阅读全文
posted @ 2019-11-18 11:37 Curedfisher 阅读(87) 评论(0) 推荐(0) 编辑
摘要:1.报错信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will *** 2.解决方法 在yml文件中添加如下内容: #springboot中的内置tomcat 阅读全文
posted @ 2019-11-18 10:03 Curedfisher 阅读(891) 评论(0) 推荐(0) 编辑
摘要:1.在pom.xml中添加热部署依赖 <!-- 热部署 --> <!-- devtools可以实现页面热部署(即页面修改后会立即生效, 这个可以直接在application.properties文件中配置spring.thymeleaf.cache=false来实现) --> <!-- 实现类文件热 阅读全文
posted @ 2019-11-07 20:45 Curedfisher 阅读(2631) 评论(0) 推荐(0) 编辑
摘要:特别详细的MQ消息队列的介绍: URL地址:https://blog.csdn.net/HD243608836/article/details/80217591 阅读全文
posted @ 2019-11-07 17:00 Curedfisher 阅读(697) 评论(0) 推荐(0) 编辑
摘要:1.报错原因: Description Resource Path Location TypeCannot change version of project facet Dynamic Web Module to 2.5. sxnx-sms line 1 Maven Java EE Configu 阅读全文
posted @ 2019-11-07 08:04 Curedfisher 阅读(3456) 评论(0) 推荐(0) 编辑
摘要:转载URL:https://blog.csdn.net/zhangjinwei417/article/details/92823438 阅读全文
posted @ 2019-11-06 09:42 Curedfisher 阅读(3681) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示