yaml
server.tomcat.max-threads=200
server.tomcat.accept-count=200
server.tomcat.max-connections=10000
yaml
server.http2.enabled=true
@Cacheable("users")
public User getUserById(Long id) {
// ...
}
@GetMapping("/users")
public Flux<User> getUsers() {
return userRepository.findAll();
}
yaml
server.compression.enabled=true
server.compression.mime-types=application/json,application/xml,text/html