- 博客(6)
- 收藏
- 关注
原创 Java对象通过fastJson转成Map
Java对象通过fastJson转成Map// dto java对象Map<String,String> map=JSONObject.parseObject(JSON.toJSONString(dto),new TypeReference<Map<String,String>>(){});
2020-10-28 09:54:50
1321
原创 SpringBoot项目配置多数据源
SpringBoot项目配置多数据源@Configuration@EnableAutoConfiguration@MapperScan(basePackages=DbConfig.PACKAGE,sqlSessionFactoryRef="moduleSqlSessionFactory")public class DbConfig{ static final String PACKAGE="cn.mw.module.dao"; static final String MAPPING
2020-09-18 11:47:34
190
原创 vue使用get方法传参数和post方法传参数
1 在vue的js文件中//postexport function getData(data){return request({url:'/getData'method: 'post'data}}}//getexport function getData(objectId){return request({url:'/getData'method: 'get'//如果get有多个参数,使用 ,隔开params: {objectId}}}}2 后端接口//post@P
2020-08-18 16:45:49
2497
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1