본문 바로가기

Spring38

Node.js npm = node package manager C:\Program Files\nodejs npm 서버구동시 명령어를 하기위해 -서버구동을해주기때문에 설치해야함 Microsoft Windows [Version 10.0.19041.985] (c) Microsoft Corporation. All rights reserved. C:\Users\user>npm install -g npx C:\Users\user\AppData\Roaming\npm\npx -> C:\Users\user\AppData\Roaming\npm\node_modules\npx\index.js + npx@10.2.2 added 493 packages from 654 contributors in 13.658s ╭─────────────────.. 2021. 6. 14.
git 협업 1 2021. 6. 7.
오류기록( spring boot)javax.servlet.ServletException: Circular view path [project]: would dispatch back to the current handler URL javax.servlet.ServletException: Circular view path [project]: would dispatch back to the current handler URL [/project] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.) 원인중 하나. @RequestMapping 애노테이션의 URL 패턴과 String 리턴 값이 같을경우 @RequestMapping("/project") // URL 패턴 public String project(){ return "project"; // String .. 2021. 6. 3.
스프링부트 프로젝트에 웹소캣 적용 // WebSocket 1대 1채팅(오류 기록) 웹소캣때매 3일동안 미쳐버리는줄알았다. 팀프로젝트때 나의 담당이 1대1채팅이라 공부를 하며 프젝을 하게 되었는데... sample1.html:51 WebSocket connection to 'ws://localhost:3000/chating' failed: 때매 하루를 통으로 날렸다 처음엔 stomp로 진행을 했는데 stomp랑 websocket config 해줄때 헷갈려서 오류를 발생하게 했다. WebSocketConfig (WebSocket) package bit.com.a.WebSocket; import org.springframework.context.annotation.Configuration; import org.springframework.web.socket.config.annotation... 2021. 6. 3.
git 팀프로젝트 협업 먼저 git repository 생성(팀프로젝트일시 하나의 repository에서 진행) repository -> settings -> Manage access 에서 팀원 초대 Git (git-scm.com) Git git-scm.com 깃설치 설치완료 후 spring tool suite4 업로드 하고싶은 프로젝트 마우스 우클릭-> properties location 우측 버튼 클릭시 해당 프로젝트 저장소 폴더창 열림 폴더 창이 얼리면 해당 폴다 하얀 백그라운드에 우클릭하여 Git Bash Here 클릭 2021. 5. 31.
85일차// spring boot/ coolsms를 이용한 문자 발송 /project @RequestMapping(value = "/sendSms", method = RequestMethod.POST) public String sendSMS(String from, String text) throws Exception { // 휴대폰 문자보내기 String api_key = "발급받은키"; String api_secret = "개인 시크릿 키"; Coolsms coolsms = new Coolsms(api_key, api_secret); // 메시지보내기 객체 생성 /* * Parameters 관련정보 : http://www.coolsms.co.kr/SDK_Java_API_Reference_ko#toc-0 */ HashMap set = new HashMap(); set.put("to", f.. 2021. 5. 12.
80일차//Spring Boot/[javascript] 세션 스토리지 알고 사용하기.. sessionStorage login.html Login 아이디 패스워드 login 회원가입 sessionStorage.setItem( ); 웹에서 데이터를 저장하는 방법 중 서버가 아닌 클라이언트에서 가능한 방법을 알아보려고 합니다. 웹사이트의 정보를 저장하기 위해서 반드시 서버가 필요한 것은 아닙니다. 사용 목적에 따라 클라이언트 저장소 역시 좋은 역할을 할 수 있습니다. 일반적으로 클라이언트 저장소를 생각하면 가장 먼저 쿠기 저장소를 떠올리겠지만 html5에는 좀 더 효과적인 클라이언트 저장 공간을 제공하는데 어떤 것이 있는지 알아보면 다음과 같죠. ! localStorage, sessionStorage API 알아보기 html5에서는 좀 더 쉽고 간단한 저장소 제공을 위해 새로운 localStorage와 sessionSto.. 2021. 4. 30.
79일차//[Spring Boot] 스프링 부트란 무엇인가? 1. 스프링 부트란? 스프링 프레임워크 기반 프로젝트를 복잡한 설정없이 쉽고 빠르게 만들어주는 라이브러리입니다. 사용자가 일일이 모든 설정을 하지 않아도 자주 사용되는 기본설정을 알아서 해줍니다. 2. 왜 스프링 부트를 사용해야할까? 스프링 프레임워크를 사용하려면 많은 XML 설정 파일(web.xml, rootContext.xml, ServletContext.xml 등)들을 작성해야하고, 설정 방법을 모두 외우지 못했다면 기존에 사용했던 설정을 Copy&Paste하거나 개발자가 일일이 인터넷 검색을 통해서 설정해주어야 했습니다. 이는 곧 생산성과 비용 문제로 직결될 수 있습니다. 하지만 스프링 부트를 사용하면 복잡한 설정없이 쉽고 빠르게 스프링 프레임워크를 사용할 수 있습니다. 3. Spring Boot.. 2021. 4. 29.
79일차// spring boot/ 설치 +setting java version: 8 name : 프로젝트 이름 pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.4.5 com.example Sample1 0.0.1-SNAPSHOT Sample1 Demo project for Spring Boot 1.8 org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-tomcat org.springframewor.. 2021. 4. 29.