摘要: cloud-product生产者发布的接口,将文件内容写入HttpServletResponse中 @GetMapping(value = "/file") public void downloadFile(@RequestParam String path, HttpServletResponse 阅读全文
posted @ 2021-10-20 16:38 难越关山 阅读(1095) 评论(0) 推荐(0)
摘要: org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation。 报这个错 >返回的实体类或者接收参数get、set方法 阅读全文
posted @ 2021-10-12 16:58 难越关山 阅读(1200) 评论(0) 推荐(1)
摘要: 1.使用idea打包 选择module 选择Main Class build 2.使用maven打包 <build> <plugins> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <man 阅读全文
posted @ 2021-09-27 17:22 难越关山 阅读(41) 评论(0) 推荐(0)
摘要: springboot通过GET、POST、PUT、DELETE来实现数据的增删改查 GET:一般用于查询数据,采用明文传输 POST:一般用于插入数据 PUT:一般用于更新数据 DELETE:一般用于删除数据 @PathVariable:获取url中的数据 @GetMapping(value = " 阅读全文
posted @ 2021-09-23 13:58 难越关山 阅读(417) 评论(0) 推荐(0)