%3B.png)
svn update を実行しましたが、競合が発生しました。
今、私は自分の作業用コピーを入手したい
誰かSVNアップデートを元に戻す方法を教えてください
これは競合のあるコントローラクラスです
最終的な静的ロガー logger = Logger.getLogger(ChromeExtentionController.class); <<<<<<< .mine
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("Message", "Success"); System.out.println("My string " + mv.toString()); return "success";
}
@RequestMapping(value = "/scraper/submit1", method = RequestMethod.GET)
public String postDataForChromeExtension1() {
CustomJMSProducer c = new CustomJMSProducer();
// c.messageToQueue();
return "Success";
}
<<<<<<< .mine
@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 { incomingRequest = mapper.readValue(scraperInput, Map.class); url = incomingRequest.get("url") != null ? incomingRequest.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 try { incomingRequest = mapper.readValue(scraperInput, Map.class); url = incomingRequest.get("url") != null ? incomingRequest.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 は「OK」を返します。
}
.r9063