본문 바로가기

아장아장 개발 일기

검색하기
아장아장 개발 일기
프로필사진 빨간머리 마녀 🍒

  • 분류 전체보기 (25)
    • 개발 (25)
      • Spring (13)
      • AWS (9)
      • MariaDB (1)
      • SourceTree (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/03   »
일 월 화 수 목 금 토
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
Tags
  • 도메인
  • 테스트코드
  • Spring
  • IdClass
  • 자바
  • secondaryindex
  • awscli
  • markerinterface
  • partiql
  • 자바스프링
  • 개발
  • 로드밸런서
  • annotation
  • awscloud
  • 오류
  • MockMvc
  • AWS
  • DynamoDB
  • compositekey
  • javaspring
  • Springsecurity
  • Route53
  • Java
  • 스프링테스트
  • testresttemplate
  • query
  • filterexpression
  • 스프링
  • EmbeddedId
  • 다이나모디비
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록testcode (1)

아장아장 개발 일기

Spring MockMvc 사용법

MockMvc 테스트 기본 소스 @AutoConfigureMockMvc @SpringBootTest(webEnvironment= SpringBootTest.WebEnvironment.MOCK) @RunWith(SpringRunner.class) @ActiveProfiles("dev") public class TestControllerTest extends TestCase { @Autowired private MockMvc mockMvc; @AutoConfigurationMockMvc : mockMvc 의존성 주입을 위한 어노테이션이며, 해당 어노테이션이 없으면 MockMvc가 자동 의존성 주입되지 않고 nullPointException 발생. @ActiveProfiles(”dev”) : 프로젝트에 app..

개발/Spring 2022. 4. 19. 11:36
Prev 1 Next

Blog is powered by AXZ / Designed by Tistory

티스토리툴바