일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- codebuild
- VPN
- kubeflow
- SQL
- java bigdecimal
- Spring
- aws
- bootstrap
- chart.js
- aws cicd
- docker
- chartjs
- AWS CI/CD 구축하기
- codepipeline
- codedeploy error
- Flux
- codedeploy
- or some instances in your deployment group are experiencing problems.
- IntelliJ
- redis
- Kafka
- PostgreSQL
- Spring Error
- Jenkins
- 도커
- COALESCE
- Python
- Airflow
- JavaScript
- node
- Today
- Total
목록백엔드/Spring (133)
Small Asteroid Blog

다음과 같은 오류를 만나면 DB 정보가 입력되지 않아 생기는 오류이므로 application.properties 에 아래 코드를 입력해주면 된다. spring.datasource.driver-class-name=org.mariadb.jdbc.Driver spring.datasource.url=jdbc:mariadb://localhost:3306/database이름?characterEncoding=UTF-8&serverTimezone=UTC spring.datasource.username= spring.datasource.password=
빈으로 등록되지 않은 객체를 주입하려고 할 때 생기는 에러 bean으로 등록하지 않은 dto를 주입해서 사용하려고 했다
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 추가하기 # DataSource spring.datasource.url=jdbc:mysql://localhost:3306/[DB스키마명]?autoReconnect=true spring.datasource.username=[DB접속Id] spring.datasource.password=[DB접속Password] spring.datasource.driver-class-name=com.mysql.jdbc.Driver
쿼리에 null 이 들어가서 생기는 문제
다음 부분에서 @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @GeneratedValue(strategy = GenerationType.IDENTITY) 이부분을 추가해주면 된다. @GeneratedValue 는 주키의 값을 위한 자동 생성 전략을 명시하는데 사용한다. strategy가 지원하는 것으로는 1. AUTO : 특정 DB에 맞게 자동 선택 2. IDENTITY : DB의 identity 컬럼을 이용 3. SEQUENCE : DB의 시퀀스 컬럼을 이용 4. TABLE : 유일성이 보장된 데이터베이스 테이블을 이용 IDENTITY의 경우 예외가 발생하고, TABLE의 경우 내부적으로 사용하는 것으로 추정할 수 있는 ..
primary key 속성을 부여하지 않아 생기는 오류 ncorrect table definition; there can be only one auto column and it must be defined as a key sql 해결 ALTER TABLE openapi_demo.openapi_url MODIFY COLUMN id int(11) auto_increment primary key NOT NULL; sql 오류 ALTER TABLE openapi_demo.openapi_url MODIFY COLUMN id int(11) auto_increment primary key NOT NULL;