본문 바로가기

오류 및 해결13

[Spring Boot] DB 연동 오류 해결 : Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. [ 문제 ]프로젝트 구성 중 DB를 연동하지 않아 실행 시 아래와 같은 오류 발생 ***************************APPLICATION FAILED TO START***************************Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver classAction:Consider the following: If you want an embedded database (H2, HSQL or Derby), please pu.. 2025. 2. 17.
[Spring] org.springframework.beans.factory.CannotLoadBeanClassException 오류 org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.worldfinder.security.CustomUserDetailService] for bean with name 'customUserDetailService' defined in ServletContext resource [/WEB-INF/spring/security-context.xml]; nested exception is java.lang.ClassNotFoundException: org.worldfinder.security.CustomUserDetailService [해결법] Project > Clean 2023. 8. 25.
Spring Security XML 설정 오류(servlet-context.xml) 오류 Spring Security 초기 설정 중 아래와 같은 오류 발생 Multiple annotations found at this line: - Configuration problem: You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd or spring-security-3.1.xsd schema or spring-security-3.2.xsd schema or spring-security-4.0.xsd schema with Spring Security 4.2. Please update your schema declarations to the 4.2 schema. Offending resource: file [C:/dev/works.. 2023. 7. 24.
[STS] Eclipse (STS) JVM is not suitable for this product 오류 Spring Project를 실행하기 위해 STS 프로그램을 실행했으나 사진과 같은 오류 발생 CMD로 java 버전 확인해보니 14로 되어있어서 오류 발생한 걸로 확인 나는 java 버전이 여러 개라 C:\Program Files\Java 경로에 scripts 폴더를 만든 후 .bat 파일을 만들어줌 1) 메모장 관리자 권한으로 실행 2) 아래 내용 버전마다 다르게 입력 @echo off set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_311 set Path=%JAVA_HOME%\bin;%Path% echo Java 8 activated. 3) .bat 확장자로 저장 Path의 환경 변수 편집 (C:\Program Files\Common.. 2023. 7. 16.
[Eclipse] 톰캣 에러 : 'Publishing to Tomcat v9.0 Server al localhost...' has encountered a problem. 에러 'Publishing to Tomcat v9.0 Server al localhost...' has encountered a problem. Could not publish to the server. Could not publish to the server. java.lang.IndexOutOfBoundsException 해결법 1. Servers > Tomcat v9.0 Server at localhost 우클릭 > Add and Remove 선택 2. 실행하려는 프로젝트만 Configured로 이동 3. Tomcat 재실행 2023. 6. 9.
flatB 프로젝트 정보 및 오류 모음 1) 백엔드 개발 환경 오류 백엔드에서 Spring Boot를 처음 사용하는 팀원이 있어 MySQL과의 연동과 포트 문제 등 개발을 시작하기 전부터 많은 오류가 있었다. 그래서 혼자서 해결하기 힘든 오류들은 백엔드 담당자끼리 오류를 공유하고 해 결법을 알려주는 등 계속 소통을 하여 많은 오류를 해결할 수 있었다. 2) Git 문제 팀원 중 한 명이 Git을 사용하던 도중 갑자기 Git의 어떠한 명령어도 사용되지 않는 문제가 발생하였다. 그 래서 회의 시간에 팀원들에게 해당 문제를 공유하였고, 문제를 해결하기 위해 팀원 모두 같이 이야기를 나눠 문제를 해결할 수 있는 명령어를 같이 찾아주고 공유해서 문제를 해결했다. 3) 추천 누른 게시물 조회 시 'No serializer found for class o.. 2022. 12. 10.
반응형