changed jdk on 25 springBoot on 3.5.6 and fix code
This commit is contained in:
@@ -6,6 +6,7 @@ import com.krylov.refound.ai.dto.ModerationResponse;
|
||||
import com.krylov.refound.service.SchedulerService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping("/api/v1/test")
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
@PreAuthorize("hasRole('ADMIN')")
|
||||
public class TestController {
|
||||
|
||||
private final SchedulerService schedulerService;
|
||||
|
||||
Reference in New Issue
Block a user