일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 그리디알고리즘
- 정렬
- mariaDB
- 데이터베이스
- join
- Database
- 프로그래머스
- 백준
- Spring
- java
- BFS
- 알고리즘
- db
- select
- 탐욕법
- springboot
- Effective Java
- Greedy
- SQL
- DFS
- mybatis
- DP
- 코테
- 이펙티브자바
- 너비우선탐색
- 다이나믹프로그래밍
- 깊이우선탐색
- IntelliJ
- 우선순위큐
- 피보나치
- Today
- Total
목록springboot (6)
땀두 블로그

스프링부트 테스트코드를 아래와 같이 작성하여 실행을 해보았는데 에러가 발생하였다. @SpringBootTest public class MainControllerTest { @Autowired private MockMvc mvc; @Test public void mainTest() throws Exception { String main = "main"; mvc.perform(get("/main")) .andExpect(status().isOk()) .andExpect(content().string(main)); } } org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'springboo..

스프링부트와 AWS로 혼자 구현하는 웹 서비스 책을 따라서 하면서 일부는 스스로 변경해서 사용하고 있다. 예를들면 build.gradle에서 gradle 버전이 변경되면서 compile 대신 implementation을 사용한다던가 하는 문제들이다. 이러한 비슷한 문제 중에서 @RunWith 어노테이션도 포함이 되어있다. 이 부분에 대해선 백기선님의 블로그를 참조해보면 좋을 듯 하다. https://www.whiteship.me/springboot-no-more-runwith/ 스프링 부트, @RunWith가 더이상 보이지 않는 이유 왜 최근 버전의 스프링 부트를 사용한 프로젝트의 테스트 코드에서 @RunWith를 더이상 볼 수 없는지 살펴보겠습니다. www.whiteship.me 내용을 읽어보게 되면 ..

buildscript { ext { springBootVersion = '2.1.9.RELEASE' } repositories { mavenCentral() //jcenter는 mavenCentral로 마이그레이션되었다. // https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'org.springframework.boot..

Spring Boot DevTools가 제공하는 기능은 크게 5가지이다. Property Defaults Automatic Restart Live Reload Global Settings Remote Applications maven 프로젝트의 경우 spring-boot-devtools를 사용하기 위해서 아래와 같이 설정해준다. build.gradle로 들어가서 dependency 추가 implementation 'org.springframework.boot:spring-boot-devtools' file - settings - build, execution, deployment - compiler 에서 build project automatically 체크 Advanced Settings > Allow..

위와 같이 invalid source release 오류가 발생하였다. 이는 jdk 버전이 제대로 잡혀있지 않아서 발생하는 오류이다. IntelliJ 상단 file - settings-build, execution, deployment - build tools - maven - Runner 에 들어가서 JRE에 있는 부분을 jdk11버전으로 변경해주면 된다. jdk11이 없는 경우 설치하고, file - project structures에 들어가서 jdk 탐색을 하여 설정해주면 된다.