@@ -0,0 +1,530 @@
+package com.yan.junit;%0A%0Aimport org.junit.Test;%0A%0Aimport java.time.LocalDate;%0Aimport java.time.format.DateTimeFormatter;%0A%0A/**%0A * %E6%8F%8F%E8%BF%B0%EF%BC%9ATODO%3Cbr%3E%0A *%0A * @author Yanzheng %E4%B8%A5%E6%AD%A3%3Cbr%3E%0A * %E6%97%B6%E9%97%B4%EF%BC%9A%3Cbr%3E%0A * 2018/2/5 %E4%B8%8B%E5%8D%883:41%3Cbr%3E%0A * %E7%89%88%E6%9D%83%EF%BC%9A%3Cbr%3E%0A * Copyright 2017 %3Ca href=%22https://github.com/micyo202%22 target=%22_blank%22%3Ehttps://github.com/micyo202%3C/a%3E. All rights reserved.%0A */%0Apublic class Java8Test %7B%0A%0A    @Test%0A    public void test() %7B%0A        String aa = DateTimeFormatter.ofPattern(%22yyyy-MM%22).format(LocalDate.now());%0A        System.out.println(aa);%0A    %7D%0A%0A%7D%0A

添加java8测试代码