
spring
百特慢
这个作者很懒,什么都没留下…
展开
-
一张图理解SpringMVC的执行流程
废话不多说上图解释DispatcherServlet表示前置控制器,是整个SpringMVC的控制中心。用户发出请求,DispatcherServlet接受请求并拦截请求。补充:假设请求的url:http://localhost:8080/SpringMVC/hellohttp://localhost:8080服务器域名SpringMVC部署在服务器上的web站点hello表示控制器即表示为:请求位于服务器localhost:8080上的SpringMVC站点的hello con原创 2020-09-05 21:41:29 · 210 阅读 · 0 评论 -
RestController和Controller的区别
今天学习编写了一段关于注册客户的业务逻辑的时候,遇到一个问题,总是在页面上打印需要跳转的网址,而不是跳转页面,例如;这就让我很郁闷了,怎么查代码都不对,最后发现是RestController和Controller注解的区别。之前为了方便,在Handler类上面加了RestController注解,对底下所有方法都有效,如果不是ajax请求,那么就会返回一串字符串。又趟过了一个坑。...原创 2020-07-26 16:52:24 · 201 阅读 · 0 评论 -
Unsatisfied dependency expressed through field ‘passwordEncoder‘
问题描述:七月 23, 2020 10:00:40 上午 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]org.springframework.beans.factory.Uns原创 2020-07-23 10:04:59 · 2179 阅读 · 6 评论 -
No qualifying bean of type ‘com.atguigu.crowd.service.api.MenuService‘ available: expected at least
今天遇到了这个问题,网上大部分说是没有导包,而我是犯了一个愚蠢至极的错误,还半天没有找出来。图片里面的service注解没有加。wtf !!!!!!原创 2020-07-19 23:17:20 · 1372 阅读 · 7 评论 -
com.alibaba.druid.pool.DruidDataSource error 严重: create connection error, url: jdbc:mysql://localho
问题描述:com.alibaba.druid.pool.DruidDataSource error 严重: create connection error, url: jdbc:mysql://localhost:3306/project_crowd, errorCode 0, state S1000 java.sql.SQLException: Unknown character set index for field ‘224’ received from server.问题解决:查了网上很多解决原创 2020-07-13 11:54:28 · 8464 阅读 · 6 评论 -
警告: No mapping found for HTTP request with URI [/springmvc-01/helloworld] in DispatcherServlet with
在学习springmvc时遇到这个错误,因为 <context:component-scan base-package="com.wangwd.springmvc"></context:component-scan>这个语句的package没有写成包,而是写成包底下的类,改过就行了。参考博客原创 2020-06-30 17:20:57 · 999 阅读 · 0 评论 -
Caused by: com.mysql.cj.exceptions.UnableToConnectException: Cannot load connection class because of
Caused by: com.mysql.cj.exceptions.UnableToConnectException: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to parse the connection string near ‘;characterEncodin原创 2020-06-23 21:32:54 · 4465 阅读 · 2 评论