Remove actuator
This commit is contained in:
@@ -19,7 +19,6 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||||
implementation 'org.springdoc:springdoc-openapi-ui:1.3.3'
|
||||
|
||||
@@ -65,15 +65,6 @@ interface TodoApi {
|
||||
void delete(@PathVariable String id);
|
||||
}
|
||||
|
||||
@RequestMapping("/unsecured")
|
||||
@Tag(name = "Unsecured API", description = "aliquet nec ullamcorper sit amet risus nullam eget felis eget")
|
||||
interface UnsecuredApi {
|
||||
|
||||
@GetMapping
|
||||
@ResponseStatus(code = HttpStatus.OK)
|
||||
String unsecured();
|
||||
}
|
||||
|
||||
@OpenAPIDefinition(
|
||||
info = @Info(
|
||||
title = "Code-First Approach (reflectoring.io)",
|
||||
@@ -166,13 +157,4 @@ class TodoController implements TodoApi {
|
||||
.map(todo -> new Todo(UUID.randomUUID().toString(), todo))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
||||
@RestController
|
||||
class Unsecured implements UnsecuredApi {
|
||||
|
||||
@Override
|
||||
public String unsecured() {
|
||||
return "unsecured";
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,3 @@
|
||||
springdoc:
|
||||
api-docs:
|
||||
path: /reflectoring-openapi
|
||||
show-actuator: true
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: "*"
|
||||
|
||||
Reference in New Issue
Block a user