일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 마이바티스
- 자바
- VOA
- MySQL
- Spring Boot
- 스프링
- kubernetes
- Winform
- mybatis
- 리액트
- c#
- machine-learning
- git
- 도커
- github
- 리팩토링
- design pattern
- AWS
- Kotlin
- docker
- 쿠버네티스
- DataGridView
- Python
- react
- 파이썬
- springboot
- Java
- 코틀린
- Spring
- 스프링부트
- Today
- Total
목록Spring Boot (4)
보뇨 다이어리
예전에 회사 작업하다가 공통으로 다루고있던 objectMapper, restTemplate 등이 있었는데 유틸클래스를 사용하기위해서 주입시켜야할때가 있었다 그땐 그냥 클래스쪽에 new 로 생성하고나서 안봤는데..사실 그 방법이 비용적인 측면에서 안좋다고했지만 기능상 문제가 없었기때문에..신경을 안쓴것도 있다 무튼 인터넷에 검색해보니 방법이 딱 2개 나오는데 매우 단순해서 그김에 포스팅할겸 올린다 원래 final 로 선언하고싶은데 그 방법이 통하지않는다..ㅠ 생성자 주입 @Component public class Boo { private static Foo foo; @Autowired public Boo(Foo foo) { Boo.foo = foo; } public static void randomMeth..
스프링부트를 jar 로 패키징하여 배포를 하는데 로컬쪽에서는 딜레이가 존재하지않는데 자꾸 개발서버에서는 딜레이가 된다 참 이게 이상해서 찾아보니 D 옵션을 하나 추가하면 끝이란다 war 로 패키징해야겠는데... -Djava.security.egd=file:/dev/./urandom 출처 https://jiyeonseo.github.io/2016/08/06/springboot-centos-tomcat-issue/
기존 Spring 만 만져보다가 boot 로 개발하니 신세계 :)초기 환경설정관련해서 문제가 발생해서 포스팅함빌드를 하니 아래 오류를 뱉음 12345678** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.2019-02-02 22:38:38.630 WARN 2792 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory..
Spring Boot + Hibernate 를 이용하여 빠르게 기본세팅하고 기본으로 가지고 있는 findAll 메서드를 쓸려고헀음12345678910111213@RestController@RequestMapping("/auth")public class HomeController { private AccountRepository accountRepository; @RequestMapping(value="/request") public List index() { return accountRepository.findAll(); }}Colored by Color Scriptercs 근데 아래 사진처럼 에러를 뱉었다 디버깅결과는 return 값이 null 이라는데 뭔가 빠졌나 확인했는데 애초에 Repository..