ModelAndView mv=new ModelAndView("hello");

        ModelAndView mv=new ModelAndView("hello");

충돌이 발생한 svn 업데이트를 수행했습니다.

이제 내 작업 복사본을 가져오고 싶습니다.

그러니 누구든지 svn 업데이트를 취소하는 방법을 알려주세요.

이것은 충돌이 있는 컨트롤러 클래스입니다.

최종 정적 로거 로거 logger = Logger.getLogger(ChromeExtentionController.class); <<<<<<< .광산

private static final String HttpServletRequest = null;

@RequestMapping(value = "/lead/test", method = RequestMethod.GET)
public String welcome() {

    // return new ModelAndView("redirect:/hello");
    ModelAndView mv = new ModelAndView("hello");

||||||| .r8587

@RequestMapping(value="/lead/test",method=RequestMethod.GET)
public String welcome(){

    //return new ModelAndView("redirect:/hello");

ModelAndView mv=new ModelAndView("hello");

CustomJMSProducer producer=new CustomJMSProducer();

@RequestMapping(value="/lead/test",method=RequestMethod.GET)
public String welcome(){

    //return new ModelAndView("redirect:/hello");
    ModelAndView mv=new ModelAndView("hello");

.r9063 mv.addObject("메시지", "성공"); System.out.println("내 문자열 " + mv.toString()); "성공"을 반환합니다.

}

@RequestMapping(value = "/scraper/submit1", method = RequestMethod.GET)
public String postDataForChromeExtension1() {
    CustomJMSProducer c = new CustomJMSProducer();
    // c.messageToQueue();
    return "Success";

}

<<<<<<< .광산

@RequestMapping(value = "/scraper/submit", method = RequestMethod.POST)

public String postDataForChromeExtension(@RequestBody String scraperInput) {
    if (scraperInput == null || scraperInput.isEmpty()) {
        logger.info("Null in request body");
        System.out.println("Null in request body");
        return "NULL BODY";
    } else {

        CustomJMSProducer c = new CustomJMSProducer();
        ObjectMapper mapper = new ObjectMapper();
        Map incomingRequest = null;
        String url = null;

||||||| .r8587

@RequestMapping(value="/scraper/submit",method = RequestMethod.POST)
public String postDataForChromeExtension(@RequestBody String scraperInput){
    if(scraperInput==null || scraperInput.isEmpty()){
        logger.info("Null in request body");
        System.out.println("Null in request body");
        return "NULL BODY";
    }else{

    CustomJMSProducer c=new CustomJMSProducer();
    ObjectMapper mapper = new ObjectMapper();
    Map incomingRequest=null;
    String url=null;

노력하다 {

@RequestMapping(value="/scraper/submit",method = RequestMethod.POST)
public String postDataForChromeExtension(@RequestBody String scraperInput){


    try {

.r9063 <<<<<<< .mine try { try {comingRequest = mapper.readValue(scraperInput, Map.class); url = incomingRequest.get("url") != null ? comingRequest.get("url").toString() : ""; } catch (예외 e) { logger.info("맵에 매핑하는 동안 오류가 발생했습니다." + e.getMessage()); logger.error("맵에 매핑하는 동안 오류가 발생했습니다." + e.getMessage()); }

            c.messageToQueue(scraperInput, url);
        } catch (Exception e) {
            logger.error("Error while sending HTML to queue" + e.getMessage());
            return "error";
        }

        return "OK";

||||||| .r8587 try {comingRequest = mapper.readValue(scraperInput, Map.class); url = incomingRequest.get("url") != null ? comingRequest.get("url").toString() : ""; } catch (예외 e) { logger.info("맵에 매핑하는 동안 오류가 발생했습니다."+e.getMessage()); logger.error("맵에 매핑하는 동안 오류가 발생했습니다."+e.getMessage()); }

        c.messageToQueue(scraperInput,url);
    } catch (Exception e) {
        logger.error("Error while sending HTML to queue"+e.getMessage());

"오류"를 반환합니다.

        producer.send(scraperInput);
        return "OK";
    } catch (Exception e) {
        logger.error("Error while sending HTML to queue"+e.getMessage());
        return "error";

.r9063 } }

    @RequestMapping(value = "/abc", method = RequestMethod.GET)
    public ModelAndView getData() {

        ModelAndView model = new ModelAndView("hello");

<<<<<<< .mine 반환 모델;

    }

||||||| .r8587은 "확인"을 반환합니다.

}

.r9063

관련 정보