diff --git a/server/src/main/java/com/adobe/testing/s3mock/FaviconController.java b/server/src/main/java/com/adobe/testing/s3mock/FaviconController.java index 0c4c1e459..afe6ab8a0 100644 --- a/server/src/main/java/com/adobe/testing/s3mock/FaviconController.java +++ b/server/src/main/java/com/adobe/testing/s3mock/FaviconController.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2023 Adobe. + * Copyright 2017-2024 Adobe. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,20 +16,18 @@ package com.adobe.testing.s3mock; -import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; /** * Spring Boot 2.2+ does not include the default favicon.ico anymore. * This is needed to check if the S3 Mock is up (at least in our examples and some use-cases) */ -@Controller +@RestController @RequestMapping class FaviconController { @GetMapping("favicon.ico") - @ResponseBody void favicon() { // Method is intentionally empty. }