프로그래밍/spring18 spring BeanFactory bean 초기화 예제 applicationContext.xml TVUser,javapublic class TVUser {public static void main(String[] args) {BeanFactory factory = new XmlBeanFactory(new ClassPathResource("applicationContext.xml"));TV tv = (SamsungTV)factory.getBean("samsung");} } 2015. 10. 26. spring ajax 소스부터.. ?1234567891011121314151617var data = {usr_id : "jack" , usr_pw : "jack", usr_name : "jack"}; $.ajax({ url : "/contextPath/test/json", method : "POST", contentType : "application/json", data : JSON.stringify(data), success : function() { alert("전송 성공"); }, error : function(XHR, textStatus, errorThrown) { alert("Error: " + textStatus); alert("Error: " + errorThrown); }});위와 같이 json 객체를 JSON.. 2015. 7. 29. 이전 1 2 3 4 5 다음