롬복(lombok) @Getter : 코드를 컴파일할 때 필드들에 대한 Getter 메서드 생성@Setter : 코드를 컴파일할 때 필드들에 대한 Setter 메서드 생성@ToString : toString() 메서드 자동 생성@AllArgsConstructor : 모든 필드 값을 받는 생성자 생성@NoArgsConstructor : 기본 생성자 생성@EqualsAndHashCode : equals()와 hashCode() 자동 생성@Data : @Getter, @Setter, @ToString, @EqualsAndHashCode, @RequiredArgsConstructor를 합쳐 놓은 종합 어노테이션@RequiredArgsConstructor : 초기화 되지 않은 final, @NonNull 어노..
스타일 시트(base) @charset "UTF-8";html, body, ol, ul, li, div, span, header, footer, section,article, h1, h2, h3, h4, h5, h6, p, a, img, hr, input, form,button, table, tr, td, th, tbody, br{ margin: 0px; padding : 0px;} body{ width:1280px; margin:0 auto;}ul, li { list-style: none;}a { text-decoration: none; color : black;}a:visited { text-decoration: none; color : black;}img { border : none;}table..
타임리프 타임리프(thymeleaf) 자바 웹개발에서 사용되는 템플릿 엔진(*.html) html과 유사해서 디자이너와 개발자간의 협업을 쉽게 해 줌 ${ } : 변수 표현식 *{ } : 선택 변수 표현식 #{ } : 메시지 표현식 @{ } : 링크 url 표현식 ~{ } : 조각 표현식 https://www.thymeleaf.org/documentation.html https://www.thymeleaf.org https://www.thymeleaf.org/documentation.html 1) th:* : 타임리프 전용 속성, 브라우저는 이를 무시함 2) th:text 는 ${ }을 해석해서 태그의 텍스트 노드로 홍길동 //홍길동은 무시됨 [[${ }]] /..
스프링부트 시작 ● 실행 : src / main /java/MyfirstApplication.java ● application.propertiesspring.application.name=myfirstserver.servlet.context-path=/server.port=8090 ● src /main /java/ com /choong /myfirst /controller/HelloController.java package com.choong.myfirst.controller;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.GetMapping;import ..
스프링부트 설정 사항 ● 설정 1. Spring Boot DevTools 2. Spring Web 3. Thymeleaf 4. Lombok 5. Mybatis Framework 6. MySQL Driver ● application.propertiesserver.servlet.context-path=/server.port=80 ● application.yamlserver: port: 8090 servlet: context-path: / □ 환경 설정 : File > Settings ● 한/영 변경 ● File Encoding 방식 ● 글꼴 변경 ● 마우스 컨트롤 ● 자바 소스 코드 ..