![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ssm
小粥SAg
这个作者很懒,什么都没留下…
展开
-
整合ssm(6)之整合Mybatis框架
编写配置文件 在applicationContext.xml文件中 <!--Spring整合mybatis框架 start--> <!--1.配置连接池--> <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="driverClass" value="com.mysql.jdbc.Driver"/> <pro原创 2021-02-26 10:50:37 · 46 阅读 · 0 评论 -
整合ssm(5)之编写Mybatis框架
IAccount public interface IAccountDAO { /** * 查询所有账户 * @return */ @Select("select * from account") public List<Account> findAll(); /** * 保存账户信息 * @param account */ @Insert("insert into account (name原创 2021-02-26 10:50:02 · 53 阅读 · 0 评论 -
整合ssm(4)之整合SpringMVC框架
整合ssm(4)之整合SpringMVC框架 配置spring的监听器 web.xml文件中 <!--配置Spring的监听器 start--> <!--默认只加载WEB-INF目录下的applicationContext.xml配置文件--> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</li原创 2021-02-25 18:40:31 · 60 阅读 · 0 评论 -
整合ssm(3)之编写SpringMVC框架
整合ssm(3)之编写SpringMVC框架 配置前端控制器 web.xml中 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> <display-name>Archetype Created Web Application</displ原创 2021-02-25 18:39:54 · 65 阅读 · 0 评论 -
整合ssm(2)之编写Spring框架
整合ssm之编写Spring框架 编写配置文件 resources目录下, 新建xml文件, 命名为:applicationContext.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" xmlns:c原创 2021-02-25 16:45:46 · 59 阅读 · 0 评论 -
整合ssm(1)之搭建环境
整合ssm之搭建环境 1.数据库 create database ssm; use ssm; create table account( id int primary key auto_increment, name varchar(100), money double(7,2) ); 2.添加依赖 pom.xml中填写依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://m原创 2021-02-25 16:07:28 · 45 阅读 · 0 评论