| 게시판 게시판 제작에 필요한 간단한 구조를 정리해보자. || Dto /src/main/java/com/cristoval/web/dto/NoticeDto.java12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364public class NoticeDto { private int no; private String id; private String title; private String content; private String regtime; public NoticeDto() {}; public NoticeDto(int no, String id,..
| Spring Boot Project 시작 전에..\sts-bundle\sts-3.9.14.RELEASE\STS.ini 파일을 열고하단에 인코딩 설정을 추가해주자. -Dfile.encoding=utf-8 // 대략적인 순서(?)는1. 프로젝트 생성2. DTO 생성3. mybatis 설정파일 배치3-1. type alias 및 mapper 설정 추가4. mapper scan 처리5. mapper xml 파일 편집5-1. name space는 Repo Interface 활용6. 테스트 실행7. 서비스 생성 및 테스트8. Controller 생성 || Lombok Setting DTO 자동완성.[Spring-Boot] Lombok을 사용해보자. || Spring Boot Setting [Spring-Boot..
Spring IoC 제어권이 역전된 것 !? IoC : Inversion of Control 일반적으로는 자신이 사용할 의존성을 자신이 만들어서 사용 class OwnerController { private OwnerRepository repository = new OwnerRepository(); } Spring IoC란, 자신이 사용할 의존성을 누군가 만들어 주는 것. 이것이 제어권의 역전 class OwnerController { private OwnerRepository repo; // OwnerRepository를 사용하지만 자신이 만들지 않음 // OwnerController 밖에서 누군가가 의존성을 줄 수 있도록 생성자를 통해 의존성을 받아옴 // (=제어권 역전) public OwnerCo..