분류 전체보기296 Class ; 상속 생성자 함수의 경우 prototype을 활용해서 상속했다면 Class의 경우 extends를 활용해서 상속한다. class Car { constuctor(color) { this.color=color; this.wheels =4; } drive() { console.log("drive.."); } stop() { console.log("stop.."); } } 클래스에서는 extends를 활용해서 상속 class Bmw Extends Car { park() { console.log("park"); } } const z4=new Bmw("blue"); 2022. 10. 2. Class (ES6에 추가된 스펙) 비슷한 객체를 사용하기 위해서 생성자 함수를 사용해왔다 const User= function (name, age){ this.name=name; this.age=age; this.showName = function() { console.log(this.name); }; }; const mimi= new User("mimi", 20); 위 생성자 함수를 클래스로 만들어 보자 class User2 { constructor(name, age) { this.name = name; this.age= age; } showName() { console.log(this.name); } } const riri= new User("riri", 18); 클래스로 만들면 사용법이 동일한 것 같지만 클래스로 만들면 쇼네임이 프.. 2022. 10. 2. A field of identity constraint 'web-app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type. 웹페이지 주소 오류였다. 웹페이지 주소도 시시때때로 바뀐다는 걸 경험했다. https://velog.io/@gillog/%EC%97%90%EB%9F%AC%ED%95%B4%EA%B2%B0-web.xml%EC%97%90%EC%84%9C-cvc-id.3-A-field-of-identity-constraint-web-app-filter-name-uniqueness-matched-element-web-app-but-this-element-does-not-have-a-simple-type [에러해결] web.xml에서 cvc-id.3: A field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app' 상황 Spring P.. 2022. 9. 4. 적어도 하나의 JAR가 TLD들을 찾기 위해 스캔되었으나 아무 것도 찾지 못했습니다 매핑 주소값을 쳐야 열리는데, 실제 주소로 열려고 하니 주소값을 찾지 못하는 404error가 나왔다. 뭐 writeView.jsp를 열려고 했는데 잘 안 열렸다. 매핑 주소로 찾아야 열리는 것이었다. jsp-servlet 을 쓸 때는 그 주소에 마우스 대고 오른쪽 마우스로 서버 가동시키면 열렸지만, spring에서는 매핑 주소를 주소창에 입력해야 한다. 그래서 주소 데이타를 못 찾아왔던 것이었다. 한참을 삽질해서 드디어 가동시키네. 그래서 이곳을 참고해서 매핑 주소를 쳐야할 것 같다는 예감을 받았다. https://flea.tistory.com/12 적어도 하나의 JAR가 TLD들을 찾기 위해 스캔되었으나 아무 것도 찾지 못했습니다. 스캔했으나 TLD가 없는 JAR들의 전체 목록을 보시려면, 로그 레벨.. 2022. 9. 2. 이전 1 ··· 53 54 55 56 57 58 59 ··· 74 다음