-header.mustache생성. 1. template안에 layout폴더 생성한후 그밑에 header 생성 2. header에 들어갈 기본 html 작성. (기존 html의 헤더로 쓰일 부분만 가져온다.) -footer.mustache 생성. 1. header 1번과정과 같음. 2. footer에 들어갈 기본 html 작성. (body와 html의 시작 태그는 header의 안에 있으므로 footer안에서 닫아줘야함.) -index.mustache 수정. 1. index.mustache 수정. {{>layout/header}} 스프링 부트로 시작하는 웹 서비스 {{>layout/footer}}
- mustache 플러그인 설치 cntl + shift + a 누르고 plugin 검색후 마켓플레이스 탭누르고 mustach 검색. - mustache 스타터 의존성 추가 build.gradle dependency에 추가로 등록한다. dependencies { compile('org.springframework.boot:spring-boot-starter-web') compileOnly('org.projectlombok:lombok:1.18.10') annotationProcessor('org.projectlombok:lombok:1.18.10') compile('org.springframework.boot:spring-boot-starter-data-jpa')//스프링 부트용 spring Data J..
스택(stack) - 나중에 들어간 데이터가 먼저 나오는 구조 a = [1,2,3,4,5] # a = [1,2,3,4,5,10] a.append(10) # a = [1,2,3,4,5,10,20] a.append(20) # print(20), a = [1,2,3,4,5,10] print(a.pop()) # print(10), a = [1,2,3,4,5] print(a.pop()) 큐(queue) -먼저 들어간 데이터가 나중에 나오는 구조 a = [1,2,3,4,5] # a = [1,2,3,4,5,10] a.append(10) # a = [1,2,3,4,5,10,20] a.append(20) # print(1), a = [2,3,4,5,10,20] print(a.pop(0)) # print(2), a = [..