curl -XGET 'http://localhost:9200/_search?pretty'
curl -XGET 'http://localhost:9200/get-together/_search?pretty'
curl -XGET 'http://localhost:9200/get-together/event/_search?pretty'
| @Getter | |
| @Setter | |
| @NoArgsConstructor | |
| @lombok.ToString | |
| @Document(indexName = "#{indexNameHandler.handle('page_view_goods_detail')}", type = CurationESName.Constants.TYPE_PAGE_VIEW_GOODS_DETAIL) | |
| public class PageViewGoodsDetail { | |
| @Id | |
| private String id; |
| @Value("#{itemBean}") | |
| private Item item; | |
| @Value("#{itemBean.name}") | |
| private String itemName; | |
| @Value("#{itemBean.getName()}") | |
| private String itemName; | |
| @Value("10") //inject interger directly |
| DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd"); | |
| LocalDate localDate = LocalDate.parse("2017/06/10", formatter); | |
| System.out.println(String.format("%02d", localDate.getMonthValue())); | |
| LocalDate localDate = LocalDate.now(); | |
| DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM"); | |
| String formattedString = localDate.format(formatter); | |
| // 전 월 구하기 | |
| LocalDate localDate = LocalDate.now(); |
| -Dspring.profiles.active=op -XX:MaxPermSize=128m -Xms128m -Xmx128m -javaagent:C:/jdk1.7.0_25/springloaded-1.2.5.RELEASE.jar -noverify |
| public class ModelMapperTest { | |
| private ModelMapper modelMapper; | |
| @Before | |
| public void before() { | |
| modelMapper = new ModelMapper(); | |
| } | |
| @Test |