황교빈의 아카이브 Cloud

[JAVA] 어노테이션 정리해보기

@SpringBootApplication @ComponentScan, @Configuration, @EnableAutoConfiguration 세개를 합쳐놓은 것(1.2.0 이후 적용) Class   @EnavleAutoConfiguration 스프링부트 자동구성하도록 Class   @EnableCaching 캐시ON     @EnableBatchProcessing 스프링배치     @EnableWebSecurity 스프링 시큐리티     @EnableRedisHttpSession...

[Linux] passphrase 대화 프롬프트 없이 ssh-keygen 실행하기

ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ” https://linux.die.net/man/1/ssh-keygen ssh-keygen [-q] [-b bits] -t type [-Nnew_passphrase] [-C comment] [-foutput_keyfile] ssh-keygen -p [-P old_passphrase] [-Nnew_passphrase] [-f keyfile] ssh-keygen -i [-f input_keyfile] ssh-keygen -e [-f input_keyfile] ssh-keygen -y [-f input_keyfile] ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] ssh-keygen -l [-f input_keyfile] ssh-keygen -B [-f input_keyfile]...

springboot security 예제

spring.security.user.name=user spring.security.user.password=1234   package com.htrucci.bootsecurity; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @SpringBootApplication public class BootsecurityApplication { public static void main(String[] args) { SpringApplication.run(BootsecurityApplication.class, args); } } @RestController class...