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 | 29 | 30 | 31 |
Tags
- requestheaderdto
- Socket is closed
- 상호 인증
- Sub Bytes
- graphql
- Java Rest
- mapstruct
- tomcat jndi
- Checked Exception
- mTLS
- java
- Tomcat DBCP
- AfterMapping
- NoUniqueBeanDefinitionException
- Jndi DataSource
- Java Singleton
- Java Graphql
- 데이터 압축
- Unchecked Exception
- Graphql Client
- Open Close Principal
- Request Body 여러 번 사용
- Reading HttpServletRequest Multiple Times
- Srping MVC
- try - with - resources
- WildFly
- 개방 폐쇄 원칙
- 바이트 절삭
- 이중정렬
- HandlerMethodArgumentResolver
Archives
- Today
- Total
Developer Sang Guy
[Spring Boot] DB 연결 본문
-- application.properties
-- Oracle
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@127.0.0.1:1521:xe (Oracle 설치 서버 IP + 포트 + DB 이름)
spring.datasource.username=ID
spring.datasource.password=PW
-- MySql
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver (MySql)
spring.datasource.url=mysql://localhost:3306/test_db (MySql 설치 서버 IP + 포트 + DB 이름)
spring.datasource.username=ID
spring.datasource.password=PW
'Spring' 카테고리의 다른 글
| HttpServletRequest Body 여러 번 읽기 (0) | 2022.12.28 |
|---|---|
| [Spring] RequestMapping 기능 (produces, consumes ) (0) | 2022.10.07 |
| [Spring] Aop, Logback 활용 (0) | 2022.04.28 |
| 스프링 WebMvcConfigurer (0) | 2021.08.08 |
| Spring @Autowired를 사용한 스프링 빈 주입 (0) | 2021.05.31 |
Comments