diff --git a/build.gradle b/build.gradle index 075fcf9..5ce6dd4 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { group = 'ru.ulstu.is' version = '0.0.1-SNAPSHOT' -sourceCompatibility = '19' +sourceCompatibility = '17' repositories { mavenCentral() diff --git a/src/main/java/ru/ulstu/is/sbapp/HardwareShop/controller/UserMvcController.java b/src/main/java/ru/ulstu/is/sbapp/HardwareShop/controller/UserMvcController.java index 8b9454b..a826bd8 100644 --- a/src/main/java/ru/ulstu/is/sbapp/HardwareShop/controller/UserMvcController.java +++ b/src/main/java/ru/ulstu/is/sbapp/HardwareShop/controller/UserMvcController.java @@ -7,13 +7,14 @@ import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; import ru.ulstu.is.sbapp.HardwareShop.models.UserRole; import ru.ulstu.is.sbapp.HardwareShop.services.UserService; import java.util.List; import java.util.stream.IntStream; -@Controller +@RestController @RequestMapping("/users") public class UserMvcController { private final UserService userService;