일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- maVen
- 네트워크
- lsof
- vscode
- profile
- JavaScript
- GIT
- resource
- xargs
- context
- ssh
- 단축키
- plugin
- web.xml
- Source
- tomcat
- grep
- VirtualBox
- find
- netsh
- Mac
- 줄바꿈 문자
- import
- Eclipse
- Quartz
- IntelliJ
- Windows 10
- port
- bash
- Windows
- Today
- Total
목록Dev/Spring Boot (12)
develog
application.properties logging.level.org.apache.coyote.http11=debug console 2021-04-06 23:11:32.202 DEBUG 2773 --- [nio-8080-exec-8] o.a.coyote.http11.Http11InputBuffer : Before fill(): parsingHeader: [true], parsingRequestLine: [true], parsingRequestLinePhase: [0], parsingRequestLineStart: [0], byteBuffer.position(): [0], byteBuffer.limit(): [0], end: [376] 2021-04-06 23:11:32.203 DEBUG 2773 --..
compile 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5' @Bean public Hibernate5Module hibernate5Module() { Hibernate5Module hibernate5Module = new Hibernate5Module(); hibernate5Module.configure(Hibernate5Module.Feature.FORCE_LAZY_LOADING, true); return hibernate5Module; }
@Autowired private ResourceLoader resourceLoader; String filePath = "classpath:static/my-static-file.txt"; InputStream inputStream = resourceLoader.getResource(filePath).getInputStream(); String str = FileCopyUtils.copyToString(new InputStreamReader(inputStream)); System.out.println("str = " + str);
PostConstruct @Component @RequiredArgsConstructor public class InitDB { private final InitService initService; @PostConstruct public void init() { initService.dbInit1(); } } @Component @RequiredArgsConstructor public class InitDb { private final ItemRepository itemRepository; @PostConstruct public void init() { itemRepository.save(new Item("item1", 1000, 10)); itemRepository.save(new Item("item2..
implementation 'org.springframework.boot:spring-boot-starter-validation' github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.3-Release-Notes#validation-starter-no-longer-included-in-web-starters spring-projects/spring-boot Spring Boot. Contribute to spring-projects/spring-boot development by creating an account on GitHub. github.com
ConfA.java @Component @PropertySource("classpath:properties/confA.properties") public class ConfA { @Value("${aa.bb}") public String value; } ConfB.java @Component @PropertySource("classpath:properties/confB.properties") public class ConfB { @Value("${cc.dd}") public String value; } properties files resources properties confA.properties confB.properties