<dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-mqtt</artifactId> </dependency>
官方文件範例
<dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> </dependency>
@ApiModel(description = "Entity")
@Schema(required = true)
@Operation(summary = "API 名稱", description = "API 描述")
RestTemplate restTemplate = new RestTemplate(); // 回傳完整 Response Entity,可使用 getBody() 取得內容。 restTemplate.getForEntity(url, {entity.class}); // 僅回傳 Response Body restTemplate.getForObject(url, {entity.class});
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up