<div class="col-md-3 left_col" th:replace="fragments/left :: left">
left 메뉴
</div>
fragments 디렉토리에 left.html 파일 생성 후 다음의 코드 추가
<div class="col-md-3 left_col" th:fragment="left">...</div>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DeadLockTest { | |
public void method1() { | |
String name = new Thread().getName(); | |
synchronized (String.class) { | |
System.out.println("[" + new Thread().getName() + "] Aquired lock on String.class object in the method1"); | |
try { Thread.sleep(100); } catch (InterruptedException e) {} | |
synchronized (Integer.class) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webApp 스타일 | |
String templatePath = "excel/template_delivery.xls"; | |
System.out.println("클래스 로더 : " + getClass().getClassLoader().getResource(templatePath).toString()); | |
// spring boot 스타일 | |
ClassPathResource classPathResource = new ClassPathResource(templatePath); | |
System.out.println("클래스 패스 리소스 getPath : " + classPathResource.getPath()); | |
System.out.println("클래스 패스 리소스 getURL : " + classPathResource.getURL()); | |
System.out.println("클래스 패스 리소스 toString : " + classPathResource.toString()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AnnoClass("nklee") | |
class AnnoClassImple { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kyu.app; | |
import org.jsoup.Connection; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.safety.Cleaner; | |
import org.jsoup.safety.Whitelist; | |
import org.jsoup.select.Elements; | |
import org.junit.Test; |
NewerOlder