- 博客(2)
- 收藏
- 关注
转载 Mybatis中#与$的区别
1.两者都是动态的向sql语句中传入需要的参数 2.#传入的参数在SQL中显示为字符串 eg:select id,name,age from student where id =#{id},当前端把id值1,传入到后台的时候,就相当于select id,name,age from student where id ='1'. 3.$传入的参数在SqL中直接显示为传入的值...
2018-08-25 14:46:00
75
转载 Mybatis+Springmvc+Spring整合常用的配置文件
1.创建web项目 2.导入mabatis spring springnvc 需要的jar包 3.创建mybatis,spring,springmvc的配置文件 (1)web.xml配置文件 <?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" ...
2018-08-25 14:29:00
75
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人