Category: IT/개발

[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...

SpringBoot + Junit 예제

SpringBoot + Junit 예제 import static org.assertj.core.api.Assertions.assertThat; @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class BootrestApplicationTests { @Autowired private TestRestTemplate restTemplate; @Test public void testSpringBootApp() throws JsonProcessingException, IOException{ String body = restTemplate.getForObject(“/”,...