728x90 반응형 전체 글170 [스프링 부트 개념과 활용] 그 밖에 다양한 기술 연동 다양한 기술들 Cache Messaging Validation Send Email JTA Spring Integration Spring Session JMX Web Socket Kotlin ... 참고 https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-caching 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 appl.. 2020. 9. 3. [스프링 부트 개념과 활용] 스프링 REST 클라이언트 2부 커스터마이징 RestTemplate와 WebClient의 HttpTemplate RestTemplate java.net.HttpURLConnection 사용 WebClient Reactor Netty의 HTTP 클라이언트 사용 로컬 커스터마이징 WebClient baseUrl 적용 // RestRunner.java @Component public class RestRunner implements ApplicationRunner { @Autowired WebClient.Builder builder; @Override public void run(ApplicationArguments args) throws Exception { WebClient webClient = builder.baseUrl("http:/.. 2020. 9. 3. [스프링 부트 개념과 활용] 스프링 REST 클라이언트 1부 스프링 REST 클라이언트 스프링 REST 클라이언트 관련한 직접적인 기능은 스프링 프레임워크가 제공하며 스프링 부트는 쉽게 사용 가능하도록 Bean을 등록해주는 역할을 한다. Bean 등록 시 RestTemplate, WebClient 타입을 직접 등록하는게 아니라 해당 타입의 Builder를 등록해준다. 따라서 사용시에는 REST 클라이언트를 빌드해서 사용해야 한다. RestTemplate 와 WebClient 특징 RestTemplate Blocking I/O 기반의 Synchronous API RestTemplateAutoConfiguration 클래스 내 자동 설정 정의 프로젝트에 spring-web module이 있다면 RestTemplateBuilder를 Bean으로 등록 https://do.. 2020. 9. 3. [스프링 부트 개념과 활용] 스프링 시큐리티 2부 시큐리티 설정 커스터마이징 기본 프로젝트 구조와 의존성은 스프링 시큐리티 1부 참고 페이지 별 로그인 설정 예제 1. HelloController 및 index.html, hello.html, my.html 추가 // HelloController.java @Controller public class HelloController { @GetMapping(value="/hello") public String hello() { return "hello"; } @GetMapping(value="/my") public String my() { return "my"; } } // index.html Hello Spring Boot Security Hello My // hello.html ... Hello // my.. 2020. 8. 31. [스프링 부트 개념과 활용] 스프링 시큐리티 1부 Spring Security 스프링 시큐리티는 스프링 기반의 어플리케이션의 보안(인증과 권한)을 담당하는 프레임워크 보안관련 용어 접근 주체 (Principal) : 보호된 리소스에 접근하는 대상 인증 (Authentication) : 보호된 리소스에 접근한 대상에 대해 이 유저가 누구인지, Application의 작업을 수행해도 되는지 확인하는 과정 인가 (Authorize) : 해당 리소스에 대해 접근 가능한 권한을 가지고 있는지 확인하는 과정 (After Authentication) 권한 : 인증된 주체가 Application의 동작을 수행할 수 있도록 허락되어있는지를 결정 권한 승인이 필요한 부분으로 접근하려면 인증 과정을 통해 주체가 증명 되어야만 한다 권한 부여에도 두가지 영역이 존재하는데 웹.. 2020. 8. 31. 이전 1 ··· 22 23 24 25 26 27 28 ··· 34 다음