Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- katalon xpath
- Katalon Recorder 사용법
- 해외증권 양도세 한국투자증권
- katalon 사용법
- katalon 비교
- 해외주식 양도세 신고
- recursion example
- 톰캣 실시간 로그
- 재귀함수 예제
- 최대공약수 예제
- 피보나치 예제
- js 자동완성
- 한국투자증권 양도세 신고
- 홈택스 해외주식 양도세
- java.sql.SQLSyntaxErrorException
- katalon
- 한국투자증권 해외주식 양도세
- CSTS 폭포수 모델
- 피보나치함수
- tomcat log
- bfs 미로탐색 java
- 국세청 해외주식 양도세 신고방식
- 피보나치함수 예제
- 주식 양도세 신고방법
- 테스트 자동화
- oracle group by
- javascript 자동완성
- 재귀 예제
- katalon 자동화
- git 연동
Archives
- Today
- Total
엄지월드
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint, start_value ) as start_value, convert( bigint, minimum_value ) as.. 본문
java/Spring
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint, start_value ) as start_value, convert( bigint, minimum_value ) as..
킨글 2022. 9. 7. 09:26새로운 프로젝트에 DB 설정에 문제가 있어서 DB를 설치하고 실행했더니 아래와 같은 에러를 만났다.
SQL syntax 에러라고 뜨는데.. 나는 JPA를 사용하고 있어서 SQL을 작성한게 없다.
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint, start_value ) as start_value, convert( bigint, minimum_value ) as minimu' at line 1
그래서 application.properties 파일에 아래와 같이 추가한 부분을 제거해주었다.
이유는 spring.jpa.database 부분은 사용하는 데이터베이스를 지정해주는 것인데, sql-server로 작성되어 있어서 에러가 났던 것이다.
mysql을 사용하는 경우, spring.jpa.database=mysql이라고 입력하고 실행해주면 에러가 나지 않는 것을 확인할 수 있다.
spring.jpa.database=sql-server
'java > Spring' 카테고리의 다른 글
WebSecurityConfigurerAdapter is deprecated (0) | 2022.09.08 |
---|---|
간단한 Swagger 설정 방법 (0) | 2022.09.07 |
controller MockHttpServletResponse 401 (0) | 2022.08.30 |
thymeleaf hashmap get key, value (0) | 2022.08.30 |
Spring 로그인 성공 시 동작 처리 (successHandler) (0) | 2022.08.28 |
Comments