심각: 경로 []의 컨텍스트 내의 서블릿 [action]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께,
예외 [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection;
nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-01017: invalid
username/password; logon denied
)
### The error may exist in file [D:\스프링 프로젝트\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\code\WEB-
INF\classes\mapper\goods\Goods_SQL.xml]
### The error may involve goods.bestGoodsList
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password;
logon denied
)]을(를) 발생시켰습니다.
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
해결 방법
~~context-datasource.xml 파일 내 db 연결 설정 정보가 틀려서 생긴 문제.
ip 주소와 비밀번호 수정하여 문제 해결~~
CORS 문제였음.
local에서 서버를 돌릴 땐 로컬에 위치한 db에 연결하거나, 필터로 해당 연결을 허용 해 주어야 한다.
Description
서버 실행은 되나, 데이터를 불러오지 못하는 문제 발생
해결 방법
~~context-datasource.xml 파일 내 db 연결 설정 정보가 틀려서 생긴 문제.
ip 주소와 비밀번호 수정하여 문제 해결~~
CORS 문제였음.
local에서 서버를 돌릴 땐 로컬에 위치한 db에 연결하거나, 필터로 해당 연결을 허용 해 주어야 한다.