真的不是故意的的gravatar头像
真的不是故意的 2016-10-25 15:03:35

SSM使用分页插件pageHepler实现用户列表的增删改查,通过maven构建

项目描述

这是一个SSM的maven框架,适合学习用

运行环境

jdk7+tomcat7+mysql+IntelliJ IDEA+maven

项目技术(必填)

spring+spring mvc+mybatis+bootstrap+jquery

数据库文件

链接:https://pan.baidu.com/s/15knDZRJ6cwqqteFHqvbiRQ
提取码:alil

jar包文件

链接:https://pan.baidu.com/s/1OWwViGnchUi9mb60Ipu5fA
提取码:3xvt

运行视频

是否原创(转载必填原文地址)

转载

项目截图(必填)

SSM使用分页插件pageHepler实现用户列表的增删改查,通过maven构建

运行截图(必填)

http://localhost:8080/user/ListUser

SSM使用分页插件pageHepler实现用户列表的增删改查,通过maven构建

SSM使用分页插件pageHepler实现用户列表的增删改查,通过maven构建

SSM使用分页插件pageHepler实现用户列表的增删改查,通过maven构建
SSM使用分页插件pageHepler实现用户列表的增删改查,通过maven构建

注意事项

运行时跑出如下异常

Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userMapper' defined in file [D:\workspace-idea\springMVC1\target\springMVC\WEB-INF\classes\dao\UserMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.Resource[]' for property 'mapperLocations'; nested exception is java.lang.IllegalArgumentException: Could not resolve resource location pattern [classpath:mapping/*.xml]: class path resource [mapping/] cannot be resolved to URL because it does not exist

需要修改pom.xml,把mapper的xml文件发布到classess目录下

<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
		</plugins>
		<resources>
			<resource>
				<directory>src/main/java</directory>
				<includes>
					<include>**/*.xml</include>
				</includes>
				<filtering>false</filtering>
			</resource>
		</resources>
		<finalName>springMVC</finalName>
	</build>

SSM使用分页插件pageHepler实现用户列表的增删改查,通过maven构建


打赏

文件名:springMVC1.rar,文件大小:210.946K 下载
  • /
      • /springMVC1
        • /springMVC1/.classpath
          • /springMVC1/.externalToolBuilders
            • /springMVC1/.externalToolBuilders/org.eclipse.wst.common.project.facet.core.builder (1).launch
            • /springMVC1/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator (1).launch
            • /springMVC1/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder (1).launch
        • /springMVC1/.project
          • /springMVC1/.settings
            • /springMVC1/.settings/.jsdtscope
            • /springMVC1/.settings/org.eclipse.core.resources.prefs
            • /springMVC1/.settings/org.eclipse.jdt.core.prefs
            • /springMVC1/.settings/org.eclipse.m2e.core.prefs
            • /springMVC1/.settings/org.eclipse.wst.common.component
最代码最近下载分享源代码列表最近下载
小妹妹  LV7 2023年5月28日
18303889377  LV1 2023年5月17日
女王不该在山炮村养花  LV8 2023年4月13日
斧头帮副帮主  LV5 2023年3月24日
刘鹏yyds  LV10 2022年12月9日
微信网友_6248713511227392  LV11 2022年12月5日
天士大夫  LV2 2022年11月12日
zw050256  LV7 2022年11月9日
sgwtfdtvd  LV1 2022年6月8日
ljt289917726  LV3 2022年1月13日
最代码最近浏览分享源代码列表最近浏览
沈从文  LV2 1月1日
taoshen95  LV14 2023年12月25日
yolo_light  LV1 2023年12月20日
SDLFJL  LV6 2023年8月15日
1748938504  LV2 2023年6月30日
gecongkai  LV8 2023年6月22日
19137715150  LV1 2023年6月18日
dameng  LV1 2023年6月12日
微信网友_6260196253601792  LV7 2023年6月7日
6389181  LV7 2023年5月31日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友