miwaiwai

导航

2022年7月2日 #

Spring学习(动力节点)

摘要: 非Spring接管下的三层项目构建: 实体类: com.bjpowernode.pojo Users 数据访问层 com.bjpowernode.dao UserMapper.java(接口) UserMapperImpl.java(实现类) 业务逻辑层 com.bjpowernode.servic 阅读全文

posted @ 2022-07-02 18:09 米歪歪 阅读(21) 评论(0) 推荐(0) 编辑

2022年6月29日 #

Spring学习(黑)

摘要: 1.spring程序开发步骤 1.导入spring开发的基j本包坐标 spring-context 2.编写Dao接口和实现类 创建bean 3.创建spring核心配置文件 applicationContext.xml 4.在Spring配置文件中配置UserDaoImpl 5.使用spring的 阅读全文

posted @ 2022-06-29 20:45 米歪歪 阅读(50) 评论(0) 推荐(0) 编辑

2022年6月27日 #

添加jason报错是由于版本问题

摘要: jar包jackson-databind和jackson-core,版本号是2.9.9.3版本,这个版本不会报这个错误 错误: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMa 阅读全文

posted @ 2022-06-27 14:51 米歪歪 阅读(25) 评论(0) 推荐(0) 编辑

2022年6月25日 #

在spring中增加属性编辑器

摘要: 配置文件spring.xml <!-- 注册属性编辑器 --> <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer"> <property name="customEditors"> <map> < 阅读全文

posted @ 2022-06-25 09:49 米歪歪 阅读(26) 评论(0) 推荐(0) 编辑

在springmvc的web.xml设置全局字符集编码

摘要: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s 阅读全文

posted @ 2022-06-25 08:09 米歪歪 阅读(238) 评论(0) 推荐(0) 编辑

2022年6月23日 #

: Unnamed bean definition specifies neither 'class' nor 'parent' nor 'factory-bean' - can't generate bean name

摘要: 十八、.org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unnamed bean definition specifies neither 'class' 阅读全文

posted @ 2022-06-23 09:39 米歪歪 阅读(67) 评论(0) 推荐(0) 编辑

SpringMVC构建

摘要: 一.SpringMVC简介 Model数据模型 View视图 Controller控制器 MVC是一种web应用架构,是一种代码设计思想 思想:将所有客户端请求全部交由控制器,由控制器将其分发并将结果响应给客户端 2.常见MVC框架 使用原生Servlet实现MVC, *配置比较复杂 *数据处理太麻 阅读全文

posted @ 2022-06-23 05:43 米歪歪 阅读(63) 评论(0) 推荐(0) 编辑

2022年6月21日 #

数据库连接池

摘要: dbcp,c3p0,druid(德鲁伊),spring.xml配置 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://w 阅读全文

posted @ 2022-06-21 20:44 米歪歪 阅读(7) 评论(0) 推荐(0) 编辑

2022年6月20日 #

spring.xml文件头部

摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文

posted @ 2022-06-20 17:51 米歪歪 阅读(38) 评论(0) 推荐(0) 编辑

Unable to process Jar entry [module-info.class] from Jar [jar:file:/D:/APP/maven/repository/org/ow2/asm/asm/7.1/asm-7.1.jar!/] for annotations

摘要: 根据错误日志找到对应的文件夹下面的jar,用rar打开删除红色框的文件,即可解决 阅读全文

posted @ 2022-06-20 17:44 米歪歪 阅读(428) 评论(0) 推荐(0) 编辑