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

스프링부트 테스트코드를 아래와 같이 작성하여 실행을 해보았는데 에러가 발생하였다. @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..

AOP 관련 실습을 해보기 위해서 Component Scan방식을 활용하여 아래와 같이 Spring Config에 AOP 객체를 추가하였다. 그리고 프로젝트를 빌드하여 실행하였는데 아래와 같은 오류가 발생하였다. 이러한 오류는 스프링 빈 순환참조(Circular dependencies) 때문에 생기는 것이다. 스프링 빈 순환참조 오류란 스프링 document에서 내용을 확인할 수 있다. https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-dependency-resolution Core Technologies In the preceding scenario, using @Autowired works well a..

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