logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

通过response返回json数据到前端

1.response.setCharacterEncoding("UTF-8");response.setContentType("application/json");PrintWriter out = response.getWriter();RespBean bean = RespBean.error("未登录,请登录");bean.setCode(401);out.write(new Ob

#json#前端#服务器
mybatis的mapperxml文件

1.首先使用得到是springboot继承环境,创建mybatis的配置文件,在yml文件中添加mybatis的一些配置信息mybatis:typeAliasesPackage:com.ruoyi.**.domainmapperLocations: classpath*:mapper/**/*Mapper.xml#加载全局配置文件configLocation:classpath:mybatis/m

#java#mybatis#xml
到底了