deletemapping 어노테이션 제거.

master
강석 최 2022-01-06 14:51:16 +09:00
parent cbfc8f188f
commit 50bb514733
4 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ public class BoardController {
mav.addObject("logList", boardService.selectContentLog(content.getContentSeq())); mav.addObject("logList", boardService.selectContentLog(content.getContentSeq()));
return mav; return mav;
} }
@DeleteMapping("/deleteContent") @PostMapping("/deleteContent")
public Integer deleteContent(Board content, @AuthenticationPrincipal UserInfo loginUser){ public Integer deleteContent(Board content, @AuthenticationPrincipal UserInfo loginUser){
return boardService.deleteContent(content, loginUser); return boardService.deleteContent(content, loginUser);
} }

View File

@ -57,7 +57,7 @@ public class adminController {
boardCategoryService.insertBoardCategory(categoryList); boardCategoryService.insertBoardCategory(categoryList);
return categoryList.get(0).getDepth(); return categoryList.get(0).getDepth();
} }
@DeleteMapping("/deleteCategory") @PostMapping("/deleteCategory")
@ResponseBody @ResponseBody
public int deleteBoardCategory(Integer categorySeq, Integer depth) { public int deleteBoardCategory(Integer categorySeq, Integer depth) {
boardCategoryService.deleteBoardCategory(categorySeq, depth); boardCategoryService.deleteBoardCategory(categorySeq, depth);

View File

@ -47,7 +47,7 @@ $(document).on('click', '.deleteCategoryBtn', function (){
} }
if(confirm(category+"의 선택된 분류를 삭제하시겠습니까?"+msg)){ if(confirm(category+"의 선택된 분류를 삭제하시겠습니까?"+msg)){
$.ajax({ $.ajax({
type : 'DELETE', type : 'POST',
url : "/admin/deleteCategory", url : "/admin/deleteCategory",
data : {categorySeq: categorySeq, depth: depth}, data : {categorySeq: categorySeq, depth: depth},
beforeSend: function (xhr){ beforeSend: function (xhr){

View File

@ -65,7 +65,7 @@ $(document).on('click', '#zipDownBtn', function (){
$(document).on('click', '#deleteBtn', function (){ $(document).on('click', '#deleteBtn', function (){
if(confirm("이 게시물을 삭제하시겠습니까?\n되돌릴 수 없습니다.")){ if(confirm("이 게시물을 삭제하시겠습니까?\n되돌릴 수 없습니다.")){
$.ajax({ $.ajax({
type : 'DELETE', type : 'POST',
url : "/board/deleteContent", url : "/board/deleteContent",
data : {contentSeq: Number($(this).attr("data-contentseq"))}, data : {contentSeq: Number($(this).attr("data-contentseq"))},
beforeSend: function (xhr){ beforeSend: function (xhr){