后端
kirwan
这个作者很懒,什么都没留下…
展开
-
vue前后端分离解决跨域问题
1.在config/index.js中的proxyTable加入(api可以换成任意名字)proxyTable: { '/api': { target: 'http://127.0.0.1:8080/', //填后端的地址 // secure: false, // 如果是https接口,需要配置这个参数 changeOrigin: true, pathRewr...原创 2019-07-14 01:24:18 · 209 阅读 · 0 评论 -
Mybatis mapper层传入列表
举个例子:现在从student表中找出所有学生id在idList中的学生信息1.在mapper层接口中传入列表List<Student> selectByIdList(@Param("idList") List<Integer> idList);2.在mapper层xml文件中写sql语句<select id="selectByIdList" result...原创 2019-06-30 21:36:39 · 1205 阅读 · 3 评论