본문 바로가기
반응형

전체 글123

테트리스JS(원본 코딩) HTML 1234567891011121314151617181920212223242526Insert title here body { background: #202028; color: #fff; font-family: sans-serif; font-size: 2em; text-align: center; }cavas{ border: solid .2em #fff; height: 90vh; } Colored by Color Scriptercs TETRIS1.js12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576.. 2018. 12. 8.
Controller 부분 정리 @RequestMapping("user/userEntry") public ModelAndView entry(@Valid User user, BindingResult br, HttpSession session) { ModelAndView mav = new ModelAndView("user/userForm"); if(br.hasErrors()) { mav.getModel().putAll(br.getModel()); return mav; } try { service.userCreate(user); mav.setViewName("user/login"); mav.addObject("user",new User()); } catch (DataIntegrityViolationException e) { br.reject.. 2018. 12. 5.
Dao에서 sql 파라미터와 메서드 정리 public void userCreate(User user) { String sql = "insert into useraccount (userid,password,username,phoneno,postcode, "+"address,email,birthday) values(:userId,:password,:userName,:phoneNo,:postcode,:address,:email,:birthDay)"; SqlParameterSource param = new BeanPropertySqlParameterSource(user); template.update(sql, param);}// Spring은 빈클래스 자체로 때려 박을 수 있다. 객체로 받아서 프로퍼티로 다 나눠 줄 수 있다. SqlParameterS.. 2018. 12. 5.
하둡 프로젝트 Maven 환경으로 만들기 이클립스 하둡 프로젝트 Maven 환경으로 만들기 1. 새로운 프로젝트에서 Maven Project를 만듭니다.2. 웹 환경으로 만들기 때문에 , Artifact id 잘 확인하면 됩니다.3. Artifact Id 이름으로 프로젝트가 생성이 됩니다.4. src에서 폴더를 만들면 5. 아래와 같이 JavaResources 밑으로 폴더가 만들어 집니다.6. web.xml을 고쳐주시구요 1234567891011121314 hadoop index.html index.htm index.jsp default.html default.htm default.jsp Colored by Color Scriptercs7. build Path에서 library 2개를 고쳐주시구요 (server, JRE)8. build Path.. 2018. 11. 23.
반응형