corsFilter() fetch 요청 파라미터 해당 사진은 POST이며 GET도 동일하게 credentials: 'include', 추가되어있습니다 나머지 put patch del 경우 url option을 파라미터로 받아 같은 post를 호출하게 되어있습니다 springBootVersion '2.0.1.RELEASE' java 1.8 jboss 사용 환경 : 로컬호스트에서는 해당 문제가 발생하지 않지만 배포된 서버에서 테스트시 해당 문제 발생 문제 : 컨트롤러에 @PostMapping("/???") 특정 하나의 메소드 호출시 CORS 에러발생 저장버튼 클릭시 업로드된 파일을 로컬 경로에 업로드 하고 / 이후 해당 행을 DB에 저장하는 쿼리를 요청하는 메소드입니다 신규 추가시 파일을 업로드하고 행을 저장 시 이상 없이 저장이 되는데 이미 존재하는 행에 저장버튼 클릭시 에러가 발생합니다 로컬과 차이 : 로컬에서 확인되는 응답헤더에 Access-Control-Allow-Credentials, Access-Control-Allow-Origin 이 2개의 헤더가 서버에서는 반환되지 않습니다 에러 메시지 : Access to fetch at '요청URL' from origin '오리진URL' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. POST http://0.00.000.000:4022/??? net::ERR_FAILED 500 (Internal Server Error) Uncaught (in promise) Error: File upload failed. Please try again later. 비고: config.setAllowCredentials(true); 와 config.addAllowedOrigin("*"); 를 함께 쓸 수 없다고 하여 명시적으로 선언도 해주었고 클라이언트단에서 credentials: 'include', 도 추가해주었지만 해결되지 않고 정확한 문제파악조차 되지 않아 질문드립니다
만약 앞단에 Nginx를 쓰고 있다면, Nginx에서 CORS 설정을 한 경우에 스프링부트까지 요청이 오기 전에 Nginx에서 먼저 CORS 헤더 처리가 되었을 수도 있습니다. 즉, 스프링부트에서 CORS 설정을 한다면 Nginx의 CORS 설정을 빼야할 수도 있습니다.
무린·2025-01-22
올려주신 내용으로 보았을 때, 서버에서 500 에러가 발생하면서 CORS 헤더가 응답에 추가되지 않았을 가능성이 높은 것 같습니다. 500 Internal Server Error가 발생하는 것은 CORS 설정과는 상관없이 서버측의 오류로 발생하는 에러입니다. 이 에러가 발생하면서 CORS 헤더가 응답에 추가되지 않기 때문에 CORS 에러 메시지도 같이 보여...
12-Jun-2024 02:22:02.119 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.121 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.122 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.123 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.124 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.125 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.126 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.127 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.129 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.130 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:02.132 경고 [http-nio-8007-exec-26420] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/cmm/fms/selectFileInfs_n.do] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache 12-Jun-2024 02:22:10.132 정보 [ContainerBackgroundProcessor[StandardEngine[kidijsp]]] org.apache.catalina.webresources.Cache.backgroundProcess The background cache eviction process was unable to free [10] percent of the cache for Context [] - consider increasing the maximum size of the cache. After eviction approximately [5,417,457] KB of data remained in the cache. 12-Jun-2024 02:22:20.134 정보 [ContainerBackgroundProcessor[StandardEngine[kidijsp]]] org.apache.catalina.webresources.Cache.backgroundProcess The background cache eviction process was unable to free [10] percent of the cache for Context [] - consider increasing the maximum size of the cache. After eviction approximately [5,417,457] KB of data remained in the cache. 어떻게 해야하나요..뭘 봐야하나요? ㅜㅜ 죄송합니다.
안녕하세요 댓글 관련 해서 질문드립니다. 게시판을 하나 만들고있는데 CRUD , 페이징 처리는 다 완료하였습니다. 이제 댓글 하나만 남았는데 처음에 댓글 AJAX 등록 및 목록 불러오기조차 되지않아서 3~4일간 노력한끝에 등록 및 불러오기를 구현 했습니다!! 근데 한가지 문제가 또 발생하더라구요 .. 댓글이 제가 선택한 게시글의 상세보기에 등록되는것인데 .. 1-1) 게시글의 상세보기에 들어가면 댓글이 나오지않고 , 꼭 댓글등록 버튼을 눌러야만 목록이 보입니다. 1-2) 그리고 제가 댓글 등록을 모달창으로 구현하였는데 댓글등록버튼을 누르면 모달창에 꺼지지가않습니다 ..ㅠ 1-3) 목록이 보이고 , 다시 새로고침을 누르면 댓글 리스트가 사라집니다. -> 그래서 제가 이것저것 해본결과 왠지 NoticeBoardController에 있는 "글 상세보기 (주석)" 에 NoticeRepltyController에 있는 "댓글 list불러오기 (주석)" 을 추가해야 한다는 생각이 들었습니다. 아님 제가 방향을 잘못잡고있는건가요 ..? 그렇게 추가해볼라니까 return 을 두개를 못하니 계속 막혀있습니다 ㅠㅠ
페이지를 처음 로드할 때 댓글 리스트를 로드하려면 게시글 상세보기 컨트롤러에서 댓글 리스트를 불러오는 코드를 추가해야합니다. 그러나 두 개의 return을 사용할 수 없으므로, 댓글 리스트를 모델에 추가하여 뷰에 전달해야 합니다. 아래와 같이 해볼 수 있습니다. import org.zerock. service. EventNotiBoardService:
im...
spring에서 pebble사용을 위해서 자바 설정을 하는 중인데,, 계속 똑같은 에러가 뜹니다! 도와주세요ㅠㅠ 일단, 제가 설정한 과정과 에러에 대해서 순차적으로 보여드리겠습니다. 1. pom.xml에 dependency 추가 2. spring -> appServlet -> servlet-context.xml 경로에 bean 추가 및 viewResolver 설정 3. 자바에 PebbleEngineFactory.java / ServletContextFactory.java 생성 4. 컨트롤러 생성 후 지정한 파일 return (ex : return "index") 5. base.html, index.html 파일 6. run as 후 에러 내용 이제 제가 생성한 파일 내용을 위의 순서에 맞게 보여드리겠습니다. 문제가 되는 부분 체크해주시면 감사하겠습니다! 1. pom.xml에 pebble 디펜던시 추가(버전은 3.1.5) 2. servlet-context.xml에 빈 생성 ( 오류 보면 뷰리졸버의 .html를 읽지 못하는 것 같아요) 3. 자바에 PebbleEngineFactory.java / ServletContextFactory.java 생성 3-1. PebbleEngineFactory 파일 생성 3-2. ServletContextFactory 파일 생성 4. 컨트롤러 생성 후 지정한 파일 return 5. html 파일도 보여드리겠습니다. 6. 그 후 에러 내용입니다. >> LoaderException 이라고 해서 계속 오류뜨네요ㅠ 도와주세요!
안녕하세요 저는 스프링으로 백엔드 개발자가 되고 싶은 학생입니다. 제가 요즘 백엔드 공부랑 같이 코테준비도 할려는데 이게 무슨 언어로 해야할지 잘모르겠네요.. 어떤 사람들은 스프링으로 할니까 자바로 진득하게 코테준비하는게 좋다고 말하고 어떤사람들은 그래도 코테 준비는 파이썬으로 하는게 좋다고 하네요... 누구 말을 들어야 할지 모르겠어요.. 파이썬이랑 자바실력은 둘다 고만고만한 수준입니다. 개인적으로는 파이썬으로 코테준비하는게 더편한데.. 제가 생각하는 자바의 장점은 자바에 조금더 익숙해질수있다는 것이고 파이썬의 장점은 자바에 비해 빠르고 간편하게 코테 준비를 할수있음 여러분은 어떻게 생각하시나요? 요약하자면 1. 백엔드 개발자(spring)가 되고 싶음 2. 코테준비도중 무슨언어를 해야 좋을지 모르겠음. 각 언어의 장단점이 있다고 생각. 자바 - 자바에 대해 조금더 익숙해질수있음, 한가지 언어만 진득하게 해도 부족함. 파이썬 - 코테를 조금더 쉽고 간단하게 직관적으로 준비할수있음.
전자정부로 웹 개발을 하던중 프로그램 다운 로직을 만들어서 hwp다운을 구현하였습니다 ios와 안드로이드로 테스트를 해보니 안드로이드는 정상적으로 다운로드가 되고 ios 는 파일이 깨저서 html 로 다운 받아지는 현상이 되고 있어서 도움을 구하고자 글을 올립니다! 먼저 userAgent 로 os를 확인해서 iphone ipad 일 경우 XMLHttpRequest(); download.js이용하여 다운로드를 하고 ipad iphone 가 아닐경우 엘스로 이동하여 안드로이드에서 다운이 되게끔 해두었는데 안드로이드에서는 작동이 잘 되나 아이폰 아이패드로 테스트 할 경우 alert(22)먼저 타게되고 1번을 타게 됩니다 그리고나서 개발자모드로 보면 이렇게 오류가 뜨고 있습니다 무엇이 문제 일까요?
개발자 모드를 보시면 아래와 같이 404 에러가 보인다고 하셨는데요.
HTTP 상태코드 404는 URL 경로가 존재하지 않는 경우에 발생합니다.
즉, http://210.179.59.151/mIoT/mIoT/mobileIdvInfoDtl.do 라는 경로가 존재하지 않기 때문에
비정상적인 결과로 넘어오는 것은 아닌지 확인할...
Getting Started | Spring Boot with Kotlin Coroutines and RSocket Build a chat application with Reactive Web services from Spring, Kotlin, WebFlux and RSocket spring.io Spring Boot와 Kotlin을 사용하여 간단한 채팅 애플리케이션을 빌드하는 튜토리얼