-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[양동선] 3주차 과제 -complete #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
남겨드린 코드 리뷰를 확인해주시고, 혹시 로드 리뷰 내용으로도 해결이 되지 않는다면 댓글 달아주세요!
- https://gymdev.tistory.com/72를 참고하여 환경변수 설정함. | ||
#### 난관 : JAVAVIRTUALMACHINE 폴더에 jdk폴더를 넣고 싶어서 맥의 '폴더로 이동'기능을 사용! | ||
- https://support.apple.com/ko-kr/guide/mac-help/mchlp1236/mac | ||
- 이런 것도 있구나. 맥이란 해도해도 신기해요! 언제쯤 맥OS를 점령할지... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
귀엽다...🫶
--> 필요한 라이브러리를 import했더니 'web'이라는 symbol를 찾지 못했다고 뜬다. | ||
==> 해결 : https://www.goodsource.co.kr/125 참고 | ||
- build.grandle의 | ||
implementation 'org.springframework.boot:spring-boot-starter'를 | ||
implementation 'org.springframework.boot:spring-boot-starter-web'으로 수정하고 빌딩하고 실행! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://start.spring.io/
웹사이트에서 종속성을 추가할 때, Spring Web
으로 추가해주시면 된답니다!
물론 build.grandle
에서 이렇게 직접 명시해서 종속성을 가져올 수도 있어요.
### 난관 3 : localhost:8080 을 실행했으나 메인 페이지가 나타나지 않았다. | ||
<img width="631" alt="스크린샷 2023-11-03 오후 11 44 20" src="https://github.com/GDSC-Ewha-5th/GDSC-Server-5th/assets/78548833/23b76048-ced5-4ea0-8ed9-d41077fcc3ce"> | ||
|
||
- 참고 : https://devmango.tistory.com/97 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
--- | ||
SampleController.java 소스 코드 : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
문제 : 환경변수 설정을 했음에도 터미널에서 java -version을 입력할 경우 21버전으로 뜸. |
help