반응형
Recent Posts
Recent Comments
관리 메뉴

개발잡부

[900gle] 상품데이터 색인 본문

900gle shopping/indexer

[900gle] 상품데이터 색인

닉의네임 2022. 1. 7. 21:56
반응형

 

 

1초에 한번씩 증분색인 실행

package com.bbongdoo.doo.controller;


import com.bbongdoo.doo.service.ProductsService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"1. Products"})
@RestController
@RequestMapping("indexer")
@RequiredArgsConstructor
public class ProductsRestController {

    private final ProductsService productsService;

    @CrossOrigin("*")
    @PostMapping("static/product")
    public void staticIndex() {
        productsService.staticIndex();
    }


}
반응형
Comments