ModelAndView mv=new ModelAndView("你好");

        ModelAndView mv=new ModelAndView("你好");

我已經完成了 svn update ,這引起了衝突。

現在我想要拿到我的工作副本

所以請有人告訴我撤銷 svn 更新的方法

這是我的控制器類,有衝突

最終靜態 Logger 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("你好");

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 嘗試 { 嘗試 { 輸入請求 = mapper.readValue(scraperInput, Map.class); url =傳入Request.get("url") != null ?傳入Request.get("url").toString() : ""; } catch (Exception 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嘗試{傳入請求=mapper.readValue(scraperInput,Map.class); url =傳入Request.get("url") != null ?傳入Request.get("url").toString() : ""; } catch (Exception 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

相關內容