목록2022/08/04 (2)
Developer_Neo
김영한님의 Spring입문 강의 내에서 database를 h2로 진행하였다. 하지만 나는 h2를 설치하기 싫어서 사용해왔던 Mysql으로 이용하였다. build.gradle 추가한 코드 dependencies { implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' testImplementation 'org.springframework.boot:spring-boot-starter-test' //밑이 추가한 코드들이다 implementation 'org.springframework.boot:spring-boot-st..
2022.08.03 - [Spring] - [Spring 입문] - 회원 관리 예제를 만들어 보자 [Spring 입문] - 회원 관리 예제를 만들어 보자 1. 비즈니스 요구사항을 정리 2. 회원 도메인 객체를 저장하고 불러올 수 있는 리포지토리 객체인 저장소 객체를 만들자 3. 회원 리포지토리가 정상 동작하는지 테스트 케이스 작성 4. 실제 비즈 devloper-dreaming.tistory.com 위에 해당하는 것에서 도메인과 레포지토리를 만들어 서비스로써 잘 작동되는지 TestCase를 작성해 알아보았다. 이제는 도메인과 레포지토리를 이용해 View로써 브라우저에 보낼 것을 작성해볼 것인데 그전에 먼저 Controller가 있어야하고, 이 Controller를 작성하는데 있어서 스프링 빈과 의존관계를..