![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 55
Code健行
彼之蜜糖,我之毒药。
展开
-
Initializing Spring DispatcherServlet dispatcherServlet
Springboot服务启动后404(出现:Initializing Spring DispatcherServlet ‘dispatcherServlet)服务启动后发起请求,出现404控制台出现Initializing Spring DispatcherServlet ‘dispatcherServlet报错原因:启动类只扫描自身同级以及同级文件夹;解决办法:1、要将启动类和所写的entity mapper service controller等包同级,如下图2、在启动类的注解上原创 2021-05-03 13:52:47 · 11562 阅读 · 0 评论 -
MybatisPlus的代码生成器 使用详解(整合springboot)
MybatisPlus 代码生成器 使用详解(整合springboot)文章目录MybatisPlus 代码生成器 使用详解(整合springboot)代码生成器概述整合springboot步骤第一步:创建数据库表第二步:导入jar包第三步:去配置文件第四步:开启mapper接口扫描,添加分页插件第五步:代码生成第五步:运行,生成模板代码生成器概述 AutoGenerator 是 MyBatis-Plus 的代码生成器,可能小伙伴目前还不了解代码生成器,是做什么的?通俗的来说:就是生成模板,我在下原创 2021-05-02 21:41:21 · 463 阅读 · 0 评论 -
学完springboot,回顾以前,架构
学完springboot,回顾以前,架构三层架构 + mvc 架构------->解耦开发框架spring IOC AOP IOC :控制反转 AOP:切面(本质:动态代理) 为了解决什么? 在不影响业务本来的情况下,实现动态增加功能,大量应用在日志,事务。。。。方面 Spring是一个轻量级的java开源框架,容器 目的:解决企业开发的复杂性问题 Spring是春天,虽然是春天,但是也十分复杂,有大量的配置文件。Spring原创 2021-03-12 19:57:51 · 135 阅读 · 3 评论 -
Dubbo|Dubbo原理图|Dubbo原理解析
Dubbo文章目录Dubbo什么是dubbo?那么RPC是什么呢?dubbo有哪些组件?运行原理?什么是dubbo?dubbo 官网 Apache Dubbo 是一款高性能,轻量级的开源java RPC框架,它提供了三大核心能力:面向接口的远程方法调用,智能容错和负载均衡,以及服务自动注册与发现。那么RPC是什么呢? 就是不同的应用部署到不同的服务器上,应用之间想要调用没有办法直接调用,因为不在一个内存空间,需要通过网络通讯来调用,或者传达调用的数据。而且RPC会将远程调用的细节隐藏起来,让原创 2021-03-14 09:48:49 · 197 阅读 · 0 评论 -
Dubbo和zookeeper整合SpringBoot时日志冲突问题
Dubbo和zookeeper整合SpringBoot时日志冲突问题: 我们在整合springboot,添加依赖的时候,会遇到日志冲突的问题,需先排除自带的zookeeper, 然后单独引入zookeeper时还需排除其自带的日志依赖,否则启动报错,和spring自带的日志冲突了。下面是解决的办法:添加以下的依赖<!--日志会冲突--> <!--引入zookeeper--> <dependency> &l原创 2021-03-18 19:02:41 · 613 阅读 · 2 评论 -
An attempt was made to call a method that does not existThe attempt was made from following location
Dubbo和zookeeper整合springboot报错:An attempt was made to call a method that does not exist. The attempt was made from the following location(已解决)Description:An attempt was made to call a method that does not exist. The attempt was made from the following lo原创 2021-03-18 19:16:56 · 3281 阅读 · 0 评论 -
idea Maven添加依赖没有提示或者提示出现立刻消失
大家在使用idea 导入maven项目的时候,看其他人可以快速的导入,如下图,这是怎么做到的呢?解决方法: Build,Execution,Deployment->Build Tools->Maven->Repositories->选中右侧第二个列表->点击Update...原创 2021-03-23 21:54:12 · 1717 阅读 · 0 评论