08 2021 档案
摘要:'/apis': { // 测试环境 target: 'http://www.thenewstep.cn/', // 接口域名 changeOrigin: true, //是否跨域 pathRewrite: { '^/apis': '' //需要rewrite重写的,}
阅读全文
摘要:1)如果前端传的是json,后端接受时要用@RequestBody注解,json对象要与实体类对应 1 public boolean updateKnowledge(@RequestBody Knowledge knowledge){ 2 return knowledgeService.update
阅读全文
摘要:加入依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.7.0</version> </dependency> <dependency> <g
阅读全文

浙公网安备 33010602011771号