enum 추가, cors 설정 추가
This commit is contained in:
@@ -9,7 +9,5 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
public class CommonController {
|
||||
|
||||
@GetMapping("/sheets/{id}")
|
||||
public void getSheetList() {
|
||||
|
||||
}
|
||||
public void getSheetList() {}
|
||||
}
|
||||
|
||||
@@ -25,9 +25,9 @@ public enum DetectionClassification {
|
||||
private final String id;
|
||||
private final String desc;
|
||||
|
||||
|
||||
/**
|
||||
* Optional: Helper method to get the enum from a String, case-insensitive, or return ETC if not found.
|
||||
* Optional: Helper method to get the enum from a String, case-insensitive, or return ETC if not
|
||||
* found.
|
||||
*/
|
||||
public static DetectionClassification fromString(String text) {
|
||||
if (text == null || text.trim().isEmpty()) {
|
||||
|
||||
@@ -25,9 +25,9 @@ public enum DetectionClassification {
|
||||
private final String id;
|
||||
private final String desc;
|
||||
|
||||
|
||||
/**
|
||||
* Optional: Helper method to get the enum from a String, case-insensitive, or return ETC if not found.
|
||||
* Optional: Helper method to get the enum from a String, case-insensitive, or return ETC if not
|
||||
* found.
|
||||
*/
|
||||
public static DetectionClassification fromString(String text) {
|
||||
if (text == null || text.trim().isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user