Spring MVC13 [Spring MVC] Rest API - PUT 전송 안될때 let formData = $("form#bbs-form").serialize(); console.log(formData); axios({ url: "http://localhost:8080/api/bbs", method: "put", data: formData, }) .then(function (res) { alert("데이터 전송 성공!"); }) .catch(function (error) { alert("통신오류"); }); @RequestMapping(value = "/bbs", method=RequestMethod.PUT) public String bbs_update(@ModelAttribute BBsVO bbsVO) { log.debug("PUT RequestMethod Type으로 요청된 메소.. 2020. 10. 22. [Spring MVC] Mybatis Dynamic SQL 작성(Insert, Update) 이 방법의 장점은 oralce, mysql 등 해당 DMBS의 코드문법을 하나하나 적을 필요없이 자동으로 변경해줌 XML 사용하지 않는 mybatis SQL Query Builder 사용하기 mybatis 3.4 이상에서 새로 작성된 SQL query Builder 를 사용하여 xml 없이 mybatis DB mapper 구현 sql 패키지에 클래스 생성 public class BBsSQL { public String bbs_insert() { SQL sql = new SQL(); sql.INSERT_INTO("tbl_bbs"); sql.INTO_COLUMNS("b_seq").INTO_VALUES("seq_bbs.NEXTVAL"); sql.INTO_COLUMNS("b_date").INTO_VALUES(".. 2020. 10. 19. [Spring MVC] Spring Security Example 1. pom.xml 설정 4.0.0 com.biz sec SpMVC_Security war 1.0.0-BUILD-SNAPSHOT 1.8 5.2.8.RELEASE 5.2.7.RELEASE 1.6.10 1.7.30 org.springframework spring-context ${org.springframework-version} commons-logging commons-logging org.springframework spring-webmvc ${org.springframework-version} org.springframework spring-context-support ${org.springframework-version} org.springframework.security spring-securit.. 2020. 10. 13. [VanillaJS] 비동기 div 내용변경 document.addEventListener("DOMContentLoaded", function () { const list_add_button = document.querySelectorAll(".list-add-button"); var parser = new DOMParser(); list_add_button.forEach((tag) => { tag.addEventListener("click", function () { var xhttp; if (window.XMLHttpRequest) { xhttp = new XMLHttpRequest(); } else { // IE5, IE6 일때 xhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xhttp.open("PO.. 2020. 10. 12. 이전 1 2 3 4 다음 반응형