본문 바로가기

설정3

Springboot에서 h2 Database 설정 Springboot를 사용하면서 간단하게 인메모리 데이터베이스 구성하여 확인하기 위해 사용합니다. 1. dependency 추가 (maven) - DB연결을 하기 위한 jdbc 인터페이스 추가 - h2 dependency를 추가 (사용하는 DB에 따라 맞는 dependency를 추가합니다.) org.springframework.boot spring-boot-starter-jdbc com.h2database h2 runtime 2. Configuration application.yml (Springboot 프로젝트에 포함된 application.properties 또는 application.yml에 설정) spring: h2: console: enabled: true path: /h2-console dat.. 2021. 12. 10.
Spring Security 기본 API, filter 1. 스프링 시큐리티 시작 (dependency 추가) maven - pom.xml org.springframework.boot spring-boot-starter-security gradle - build.gradle implementation 'org.springframework.boot:spring-boot-starter-security'2. SecurityConfig 설정 클래스를 만들어 보안 및 인가 필터 설정 import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org... 2021. 7. 8.
[DBever] auto-commit 설정/해제 mac 기준 설정방법입니다. 1. Preferences를 클릭합니다. ( 단축키 commend + , ) 2. 연결 -> 연결유형 -> Auto-commit by default 체크/해제 위와 같이 작업하면 auto-commit을 설정 및 해제 할 수 있습니다. 메뉴 -> 데이터베이스 -> 트랜잭션 모드 -> Manual Commit으로 설정하면 커밋 및 롤백 버튼이 활성화 됩니다. 2021. 5. 27.
반응형