![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring框架
被红尘困住的那年
这个作者很懒,什么都没留下…
展开
-
使用postman访问springboot项目,出现Unsupported Media Type 415错误以及 Field ‘userId‘ doesn‘t have a default value
使用postman访问rest风格的springboot项目出现的415原创 2022-09-18 21:53:38 · 1522 阅读 · 0 评论 -
实例初始化块,spring框架中sql语句的更方便的写法
spring框架中sql语句的另外一种写法原创 2022-02-18 21:37:58 · 303 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException Invalid bound statement (not found): 可能是resources下路径问题
spring整合mybatis遇到了问题,org.apache.ibatis.binding.BindingException原创 2022-02-12 16:12:46 · 312 阅读 · 0 评论 -
三大组件之Listener:监听器(模仿springmvc框架监听器)
Listener:监听器 * 概念:web的三大组件之一。 * 事件监听机制 * 事件 :一件事情 * 事件源 :事件发生的地方 * 监听器 :一个对象 * 注册监听:将事件、事件源、监听器绑定在一起。 当事件源上发生某个事件后,执行监听器代码 * ServletContextListener:监听ServletContext对象的创建和销毁 当web应用被加载(服务器启动或发布web应用(前提,服务器启动状态))自动创建ServletContext * 方法: * void原创 2021-04-28 21:41:09 · 172 阅读 · 0 评论 -
Spring练习环境搭建之创建配置文件(web.xml,applicationContext.xml、spring-mvc.xml、jdbc.properties、log4j.properties)
web.xml配置* 1.首先是配置监听器 springmvc中的监听器 这里可以看我另外一篇专门写ServletContextListener监听器的文章 <!--配置spring的监听器--> <!--springmvc会自动创建ServletContextListener监听器--> <listener> <listener-class>org.springframework.web.context.ContextLoa原创 2021-04-28 21:38:47 · 113 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
2020-12-16 09:36:06.580 ERROR 2428 — [ main] o.s.b.d.LoggingFailureAnalysisReporter : APPLICATION FAILED TO START Description: Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.原创 2021-01-24 10:00:42 · 109 阅读 · 1 评论 -
java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4)
2020-12-16 09:30:12.493 ERROR 10560 — [nio-5050-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring原创 2021-01-24 09:58:44 · 781 阅读 · 0 评论