0
点赞
收藏
分享

微信扫一扫

备战6月12日基础配置头部

蓝哆啦呀 2022-05-31 阅读 55

本文提供了SSM中的核心内置的空置文档,帮助您强化练习SSM配置:

其中:

src下包含:

java、resources、webapp、pom.xml文件。

java下包含:

com.item下的5个包controller、dao、model、service、serviceimpl

resources下包含:

mapper/*.xml头部、applicationContext.xml空置配置、jdbc.properties空置配置、spring-mvc.xml空置配置

webapp下包含:

WEB-INF/web.xml头部

配置中请注意好大小写以及id名称的匹配。 

备战6月12日基础配置头部_spring备战6月12日基础配置头部_spring_02

备战6月12日基础配置头部_java_03 

备战6月12日基础配置头部_xml_04 备战6月12日基础配置头部_xml_05

方便大家使用,将本次设计的包都放在这里了。

为帮助同学们提升自身编程能力,本配置将平时配置项目常用的配置核心内容进行的删除处理,将本配置熟练记忆后,整个SSM框架你将信手拈来,解决各种配置bug游刃有余。

注:本文的配置文件没有任何注释内容,所有内容请学生将平时学习的内容贯彻与其中,并熟练填写对应配置的控制内容,使得程序可以正常运行即可,配置搭建分数【20分】,这20分还是后面的编码是否得分的关键,所以请慎重对待。

考试之前均置顶,祝大家都能考个好成绩。

目录

​​pom.xml​​

​​mapper.xml​​

​​jdbc.properties​​

​​applicationContext.xml​​

​​spring-mvc.xml​​

​​web.xml​​

pom.xml


junit
junit
4.11
test


mysql
mysql-connector-java
5.1.47


org.mybatis
mybatis
3.5.9


javax.servlet
javax.servlet-api
3.1.0


javax.servlet.jsp
javax.servlet.jsp-api
2.3.3


org.springframework
spring-core
4.3.18.RELEASE



org.springframework
spring-web
4.3.18.RELEASE


org.springframework
spring-context
4.3.18.RELEASE


org.springframework
spring-beans
4.3.18.RELEASE


org.springframework
spring-webmvc
4.3.18.RELEASE



org.springframework
spring-jdbc
4.3.18.RELEASE


org.springframework
spring-tx
4.3.18.RELEASE


org.mybatis
mybatis-spring
2.0.6


javax.servlet
jstl
1.2



commons-dbcp
commons-dbcp
1.4


commons-fileupload
commons-fileupload
1.3.1


commons-io
commons-io
2.4




com.alibaba
fastjson
2.0.4


com.alibaba
druid
1.1.10



com.alibaba
druid-spring-boot-starter
1.2.9

mapper.xml头部





jdbc.properties

driver=
url=
username=
password=

applicationContext.xml


xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.2.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">

























spring-mvc.xml


xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">











web.xml

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">




举报

相关推荐

0 条评论