Giter Club home page Giter Club logo

inflearn_spring's Introduction

inflearn_spring

인프런에서 김영한님의 spring 강의를 수강하고 정리하는 repository 입니다.

강의 소개

  • 강의 소개 (12/15 완료)

프로젝트 환경설정

  • 프로젝트 생성 (12/16)

https://start.spring.io/

maven / gradle
필요한 라이브러리를 가져오고 build life cycle을 관리하는 tool
과거에는 maven 사용 요즘은 gradle 사용

Spring Boot 버전
SNAPSHOT : 만들고 있는 중
M1 : 정식 릴리즈 된 것은 아님

Project Metadata
Artifact : Build 되어 나오는 결과

Build.gradle - dependencies를 repositories에 있는 곳에서 다운 받음

  • 라이브러리 살펴보기 (12/17)

Build Tool들은 의존관계를 모두 관리함
Dependencies에서의 (*) : 중복을 제거해 준 것
test library : junit log를 사용해야한다

slf4j : interface
logback : 실제 log를 구현체로 출력할 때 사용

  • view 환경설정 (12/18)

resources > static 에 index.html 파일 생성 - localhost:8080 접속 시 Welcome page가 뜨는 것을 확인할 수 있음
https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-spring-mvc-welcome-page

  • 빌드하고 실행하기 (12/18)

cmd 창에서 gradlew build
build>libs에 있는 jar 실행 (java -jar 파일명.jar)
gradlew clean 하면 build 폴더 사라짐

스프링 웹 개발기초

  • 정적 컨텐츠 (12/22)

정적 컨텐츠 : 서버에서 파일을 그대로 웹 브라우저에 내려줌
내장 톰켓 서버가 받고 Spring에게 넘김 -> Spring은 Controller가 있는지 먼저 찾아봄 -> 없으므로 내부에서 파일 찾아 반환

  • MVC와 템플릿 엔진 (1/6)

jsp, php와 같은 템플릿 엔진. html을 서버에서 프로그래밍(변형)해서 동적으로 바꿔 줌
model - view - controller

  • API

json이라는 data format으로 client에게 data를 전달

  1. 화면은 client가 알아서 그리고 정리함
  2. 서버끼리 data를 주고 받을 때 사용

회원 관리 예제 - 백엔드 개발

  • 비즈니스 요구사항 정리
  • 회원 도메인과 리포지토리 만들기
  • 회원 리포지토리 테스트 케이스 작성
  • 회원 서비스 개발
  • 회원 서비스 테스트

스프링 빈과 의존관계

  • 컴포넌트 스캔과 자동 의존관계 설정
  • 자바 코드로 직접 스프링 빈 등록하기

회원 관리 예제 - 웹 MVC 개발

  • 회원 웹 기능 - 홈 화면 추가
  • 회원 웹 기능 - 등록
  • 회원 웹 기능 - 조회

inflearn_spring's People

Contributors

ji-eun-k avatar

Watchers

 avatar

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.