본문 바로가기
카테고리 없음

[스터디] 스프링 부트 개념과 활용 - 5주차 ( ~ 3/27)

by shakevan 2022. 3. 27.

로깅

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#features.logging

 

Spring Boot Reference Documentation

This section goes into more detail about how you should use Spring Boot. It covers topics such as build systems, auto-configuration, and how to run your applications. We also cover some Spring Boot best practices. Although there is nothing particularly spe

docs.spring.io

 

 

스프링 부트 사용시 기본적으로 Logback 로거를 사용하게됨

 

Logback 설정파일 만들기

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto.logging.logback

 

Spring Boot Reference Documentation

This section goes into more detail about how you should use Spring Boot. It covers topics such as build systems, auto-configuration, and how to run your applications. We also cover some Spring Boot best practices. Although there is nothing particularly spe

docs.spring.io

 

 

테스트

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#features.testing

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto.testing

junit5 부터는 RunWith안붙여도됨!

 

테스트 유틸

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#features.testing.utilities

 

Spring-Boot-Devtools

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#using.devtools

 

 

Spring Web MVC

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#web.servlet.spring-mvc

https://docs.spring.io/spring-framework/docs/5.3.17/reference/html/web.html#mvc

 

Web on Servlet Stack

This part of the reference documentation covers support for Servlet stack, WebSocket messaging that includes raw WebSocket interactions, WebSocket emulation through SockJS, and publish-subscribe messaging through STOMP as a sub-protocol over WebSocket. 4.1

docs.spring.io

WebMvcAutoConfiguration으로 인해, 스프링 부트가 실행될 때 별도 설정없이 Web MVC를 사용할 수 있게됨.

 

HttpMessageConverters

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#web.servlet.spring-mvc.message-converters

 

ViewResolver

HTtpMessageConvertersAutoConfiguration에서 각 accept에맞는 converter들을 볼 수 있음

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#web.servlet.spring-mvc.content-negotiation

 

댓글