摘要: 1.创建web项目 2.导入mabatis spring springnvc 需要的jar包 3.创建mybatis,spring,springmvc的配置文件 (1)web.xml配置文件 <?xml version="1.0" encoding="UTF-8"?><web-app version 阅读全文
posted @ 2018-08-25 14:29 RunningAll 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.两者都是动态的向sql语句中传入需要的参数 2.#传入的参数在SQL中显示为字符串 eg:select id,name,age from student where id =#{id},当前端把id值1,传入到后台的时候,就相当于 select id,name,age from student 阅读全文
posted @ 2018-08-25 14:46 RunningAll 阅读(8378) 评论(0) 推荐(0) 编辑