
springMvc
装下世界的脑洞
很哇塞的一个人
展开
-
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; 鍓嶈█涓笉鍏佽鏈夊唴瀹广�� 解决
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; 鍓嶈█涓笉鍏佽鏈夊唴瀹广��这个错误我是在写ssm框架时候出现的 之后经过排查 搜索 发现应该是applicationContext.xml和mybatis框架的配置重复了applicationContext.xml中内容<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.spri原创 2021-04-03 12:11:21 · 1194 阅读 · 0 评论 -
springmvc+Mybatis+c3p0提示 Connections could not be acquired from the underlying database!错误
提示 Connections could not be acquired from the underlying database! 主要问题出在数据库上1 数据库的username写错了 或者你在dp.properties文件里面不可以单独写username 会发生冲突 要写jdbc.username=XXXX2 jdbc.driverClassName=com.mysql.jjdbc.Driver 这里面的Driver 要大写3 就是jdbc.jdbcUrl=jdbc:mysql://localh原创 2021-04-01 22:34:07 · 156 阅读 · 0 评论 -
Springmvc+Spring+maven+c3p0+jsp查询数据库中所有数据
Springmvc+Spring+maven+c3p0+jsp查询数据库中所有数据并显示上篇Springmvc+Spring+maven+c3p0不加入jsp的链接(https://blog.youkuaiyun.com/duduyingya/article/details/114992131)1 新的项目结构2 向pom.xml加入新需要的jar包 <!--针对jsp页面 删除掉之前加入的servlet-api包--> <dependency> <原创 2021-03-21 00:06:28 · 229 阅读 · 0 评论 -
SpringMvc案例之二(SpringMvc+Spring+maven+jdbc+c3p0)这面没加入数据库ORM框架
自己记录一下~1技术:SpringMvc+Spring+maven+jdbc+c3p0)2 工具:idea1 项目结构2 具体说明1 controller包中的 控制层 用于连接页面和业务层StudentCon 控制层接口StudentConImp 控制层接口实现类2 server层 业务层 用于连接控制层和持久层StudentServer 业务层接口StudentServerImp 业务层接口实现类3 dao 层 持久层 用于实际操作数据库和实体类的StudentDao原创 2021-03-18 22:52:55 · 206 阅读 · 0 评论 -
SpringMvc入门案例之一( 自己记录一下 )
技术:springmvc maven工具: idea1项目结构:只写了con层的 只是一个跳转功能 所以没有dao db server test db.properties2springMvc+maven的话 只有web.xml文件 和springMvc.xml文件 pom.xml文件就可以了。(1) pom.xml文件<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.o原创 2021-03-14 22:13:12 · 94 阅读 · 1 评论 -
springmvc.xml中 <mvc:annotation-driven/> 划红线解决方法
###出现 mvc:annotation-driven/ 划红线情况这种是无法找到元素 ‘mvc:annotation-driven’ 的声明解决方法 把xmlns:mvc="http://www.springframework.org/schema/tool"改成xmlns:mvc="http://www.springframework.org/schema/mvc"就好了...原创 2021-03-14 20:43:26 · 1422 阅读 · 0 评论