전체 글
-
php://input 과 $_POST의 차이카테고리 없음 2018. 8. 1. 18:56
The reason is that php://input returns all the raw data after the HTTP-headers of the request, regardless of the content type.The PHP superglobal $_POST, only is supposed to wrap data that is eitherapplication/x-www-form-urlencoded (standard content type for simple form-posts) ormultipart/form-data-encoded (mostly used for file uploads)This is because these are the only content types that must b..
-
이클립스에서 톰캣서버로 원격배포하기JAVA 2018. 7. 20. 09:46
1.Please change your pom.xml to include ... .... org.apache.tomcat.maven tomcat7-maven-plugin 2.1 http://localhost:8080/manager/text my-tomcat /myapp ... ... 2.Make sure your Tomcat 7 server have the following lines on TOMCAT_HOME/conf/tomcat-users.xml: 3.Configure your USER_HOME/.m2/settings.xml to include the password. ... ... my-tomcat manager managerPwd 4.Deploy using mvn tomcat7:redeploy Re..
-
insert 된 그 PK를 가져오기마이바티스 2018. 5. 20. 09:42
/* query */ =======================================예제================================== select SEQ_ID.nextval FROM DUAL insert into Students (id, name , email) values (#{id}, #{name}, #{email}) ====================================== 항상 테이블의 key값에만 해당하는것이 아니다. key값과는 전혀 상관없는 값도 selectKey 구문으로 리턴할수가 있는데 order옵션을 AFTER로 주고 리턴하고자 하는 값을 명시해주면 된다.아래 코드에서는 입력할시 id값을 Sequence에서 가져오는게 아니라 수동으로 넣어주고, 입력했던..
-