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()) {
|
||||
|
||||
@@ -18,11 +18,12 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
|
||||
@Override
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
registry.addMapping("/**") // 모든 URL 허용
|
||||
.allowedOriginPatterns("*")
|
||||
.allowedMethods("*")
|
||||
.allowedHeaders("*")
|
||||
.allowCredentials(true);
|
||||
registry
|
||||
.addMapping("/**") // 모든 URL 허용
|
||||
.allowedOriginPatterns("*")
|
||||
.allowedMethods("*")
|
||||
.allowedHeaders("*")
|
||||
.allowCredentials(true);
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -14,7 +14,6 @@ import org.locationtech.jts.geom.Geometry;
|
||||
@Table(name = "tb_map_sheet_anal_data_geom")
|
||||
public class MapSheetAnalDataGeomEntity {
|
||||
|
||||
|
||||
@Id
|
||||
@GeneratedValue(
|
||||
strategy = GenerationType.SEQUENCE,
|
||||
@@ -116,6 +115,4 @@ public class MapSheetAnalDataGeomEntity {
|
||||
|
||||
@Column(name = "geom_center", columnDefinition = "geometry")
|
||||
private Geometry geomCenter;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user