본문 바로가기

Spring Boot

spring boot에서 jpa와 h2디비 세팅 왠지 세세한 이유는 아직 모르겠지만 이리 세팅하면 되긴 한다.... spring.h2.console.path=/h2-console spring.h2.console.enabled=true spring.datasource.hikari.jdbc-url=jdbc:h2:tcp://localhost/D:/Severs/H2/data/mydb spring.datasource.driver-class-name=org.h2.Driver spring.datasource.username= spring.datasource.password= spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.jpa.show-sql=true 더보기
[펌] spring boot msa https://mr-spock.tistory.com/42 [#0 MSA 설계] Spring boot 기반 마이크로서비스 아키텍처(Microservices Architecture, MSA) #0 설계 MSA로 개발을 한다는 것은, 생각보다 많은 것을 필요로 한다. 서비스가 나누어 개발하였는데 몇 개 되지 않을 수 있고 반면에 점점 늘어나서 10개 20개.. 수십 개로 늘어날 수 있다. 이렇게 mr-spock.tistory.com 더보기
spring boot에서 mybatis 테스트하기 http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-test-autoconfigure/ 더보기
spring boot webflux로 Hello World 찍어보기 어찌 저찌 성공은 한듯.......해서... 기념으로다 블로그에 포스팅....ㅎ package kr.pe.fountain.web.index; import static org.junit.Assert.assertTrue; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest; import org.springframework.http.MediaType; import org.springframework.test.conte.. 더보기
spring boot webflux, 테스트 하기~ 항상 환경 세팅만 해 놓은 spring boot에 최근부터 reactive 어쩌고 하면서, 새로운 뭔가가 추가되었길래,(https://spring.io/) 그거로 다시 환경 세팅하고, 기본적인 코드를 junit 테스트 돌려 보려고 했으나... 계속 실패하였다... 아마도.. https://stackoverflow.com/questions/48842652/using-webfluxtest-to-test-routerfunction/48843944#48843944 이 것과 관련한 문제인 듯한데... 여기나오는 식으로 해도 안되다가... 어제 밤... @RunWith(SpringRunner.class) @ContextConfiguration(classes = {테스트 하고자하는 라우터 및 핸들러 클래스}) @We.. 더보기

반응형