GithubHelp home page GithubHelp logo

codesoom / spring-week2-assignment-1 Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 93.0 5.91 MB

코드숨 스프링 2주차 스프링 웹으로 ToDo REST API 만들기 과제

Java 9.65% JavaScript 68.31% Marko 19.32% HTML 2.72%

spring-week2-assignment-1's People

Contributors

hannut91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spring-week2-assignment-1's Issues

예제 코드를 구현하는 와중에 IntelliJ 시스템에서 Task 모듈을 잘못 import 하여 객체 생성이 안되는 문제 해결

문제 현상

예제 코드를 구현 하는 와중에 Task 로컬 변수를 선언 해야 하는 일이 생겼습니다.

Task task = new Task();

Screen Shot 2021-08-21 at 4 35 23 PM

그런데 시스템에서 다음과 같이 빨간 줄이 떴고, 이어서Task 생성자의 setter id 메소드도 상속 받을 수 없는 문제가 발생했습니다.

원인 분석
저는 인텔리제이의 모듈 자동 임포트 기능을 자연스럽게 쓰고 있었고, 종립님이 조언해주신 import * 기능이 왜 위험할 수 있는지 깨달았습니다.
이름은 Task로 비슷하지만, 전혀 다른 패키지가 시스템에서 자동으로 등록이 되었다는 것을 알 수 있습니다.
image

해결

해당 모듈 패키지를 지우고, 원래 패키지의 Task 모듈을 import 하였더니 이슈가 해결되었습니다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.