This tutorial provides a step-by-step guide to install Xrdp (Remote Desktop Protocol server) with GNOME GUI on Rocky Linux 8. Xrdp allows remote desktop connections to your Linux server using RDP from Windows or other systems.
@Scheduled(initialDelay = 10000, fixedRate = 30000) public void fixedRateTask() { } } @Configuration @EnableAsync public class AsyncConfig implements AsyncConfigurer { @Override public Executor getAsyncExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setCorePoolSize(5); executor.setMaxPoolSize(10); executor.setQueueCapacity(100); executor.initialize(); return executor; } }
@ExceptionHandler(UserNotFoundException.class) @ResponseStatus(HttpStatus.NOT_FOUND) public ErrorResponse handleNotFound(UserNotFoundException ex) { return new ErrorResponse(ex.getMessage()); } } @Configuration public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/api/**") .allowedOrigins("http://localhost:3000") .allowedMethods("GET", "POST", "PUT", "DELETE"); } spring boot in action
@CacheEvict(value = "users", key = "#user.id") public User update(User user) { return userRepository.save(user); } @Scheduled(initialDelay = 10000