백엔드 16

<스프링부트> Error creating bean with name 'dataSourceScriptDatabaseInitializer'

https://www.inflearn.com/questions/94737 순수 JDBC 에서 코드 입력후 실행시 에러 - 인프런 | 질문 & 답변 안녕하세요 선생님! 강의 정말 잘 듣고 있습니다. 강의 내용, 자료들 정말 좋은거 같아요 :) h2 데이터베이스 설치까지 잘 마치고, 메모리에서 JDBC로 바꾸는 과정에서 코드들 따라서 입력하고 run www.inflearn.com application.properties에 보니 spring.datasource.driver-class-name=org.h2.Driver

<스프링부트> 404 에러 - No message available

localhost:8081/api/library/author { "timestamp": "2021-10-22T12:10:13.099+00:00", "status": 404, "error": "Not Found", "message": "No message available", "path": "/api/library/author" } 물론 이 뜻은 내 프로젝트에서 반응할게 없다는 건데... 난 분명 추가해줬다. @RestController @RequestMapping(value = "/api/library") @RequiredArgsConstructor public class LibraryController { @PostMapping("/author") public ResponseEntity createAu..

<스프링 부트> 에러 ... The injection point has the following annotations, @ComponentScan

https://resian-programming.tistory.com/25 위로 아래 에러를 해결했다. https://covenant.tistory.com/243 이걸 실습하다가 발생한 문제. Field authorRepository in com.inseouls.inseoul.service.LibraryService required a bean of type 'com.inseouls.inseoul.repository.AuthorRepository' that could not be found. The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=tr..

<node.js> node.js 교과서 - ch2 클래스

음 자바스크립트 문법을 잘 모르니까. ch2 클래스 부분부터 막힌다. 프로토타입 상속 예제가 있는데, 음 책에서 자바스크립트는 프로토타입 기반으로 동작한다 는게 뭔소리인지... [medium.com/@chrisjune_13837/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EC%83%81%EC%86%8D-7c275edaa9e6] 이걸 보니 클래스 생성, 상속 방식이 다르네, 일단 자바스크립트 좀 알면 좋을텐데 책 사면 비싸니... "자바스크립트 핵심 가이드" 이 책을 저 블로그에서는 본듯 하다. 자바스크립트에서 프로토타입, 상속에 대해 알아보자. 객체지향 언어는 크게 2개 클래스 기반, 프로토타입 기반 언어로 나뉜다 하는데... 프로토타입 기반은 클..

백엔드/node.js 2020.10.01

<node.js> jsonwebtoken에서 payload?

var token = jwt.sign({ sub: 'sjk5766' }, 'secret_key'); 해당 모듈에서 페이로드로 사용되는 부분이 있는데, 페이로드가 정확히 무엇을 의미하는지 모르겠어서 찾아 본다. 위에서 sub에 해당하는 부분 같은데... [jwt.io/introduction/] Payload The second part of the token is the payload, which contains the claims. Claims are statements about an entity (typically, the user) and additional data. There are three types of claims: registered, public, and private claims. ..

백엔드/node.js 2020.09.19