摘要:
1、配置pom.xml文件 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mave 阅读全文
posted @ 2020-12-18 20:25
ralgo
阅读(128)
评论(0)
推荐(0)
摘要:
在基于Spring Boot的开发过程中有时候我们需要返回一个指定的Http响应状态码,比如500错误,这时就需要用到ResponseEntity。下面是完整的例子: 1、修改pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xml 阅读全文
posted @ 2020-12-18 13:53
ralgo
阅读(5215)
评论(0)
推荐(0)

浙公网安备 33010602011771号