diff --git a/.gitignore b/.gitignore index 72ab321523f53b45cabee095f3169c55c9cebb05..0b61a89a6a59ecbac1f30bf5e59a73d80594400c 100644 --- a/.gitignore +++ b/.gitignore @@ -103,3 +103,9 @@ hs_err_pid* /src/main/java/com/xnx3/wangmarket/shop/ /src/main/java/com/xnx3/wangmarket/weixin/ + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr diff --git a/src/main/java/com/xnx3/wangmarket/admin/controller/NewsController.java b/src/main/java/com/xnx3/wangmarket/admin/controller/NewsController.java index ff1e5bea40ba3382b53364ad874bb0aa4c7e62bf..86a30da9b950651a5c16a4ecbaf0a0b79d4608bf 100644 --- a/src/main/java/com/xnx3/wangmarket/admin/controller/NewsController.java +++ b/src/main/java/com/xnx3/wangmarket/admin/controller/NewsController.java @@ -357,7 +357,7 @@ public class NewsController extends BaseController { List newsList = sqlService.findBySqlQuery("SELECT * FROM news WHERE cid ="+siteColumn.getId(), News.class); if(newsList.size() - 1 == 0) { //正常,就是一条 - return redirect("/news/news.do?id="+newsList.get(0).getId()); + return redirect("news/news.do?id="+newsList.get(0).getId()); }else { //不正常,应该是一条才是。出现提醒 model.addAttribute("autoJumpTemplateEdit", "");