반응형 반응형 전체 글130 반응형 Swagger-ui.html 404 not found error webMvcConfigurer 랑 resources handler 추가 //implements WebMvcConfigurer //extends WebMvcConfigurationSupport package com.spring2.nyong.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.ResourceHandlerR.. 2022. 8. 19. [ SpringBoot ] api test , jpa test 코드 @RunWith(SpringRunner.class) // 스프링부트테스트와 junit 사이의 연결자 기능 @ActiveProfiles("local") @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class ApiControllerTest { @LocalServerPort private int port; @Autowired private TestRestTemplate restTemplate; @Autowired private Repository repository; @Test public void insert() { String url = "http://localhost:" + port + "/api/v.. 2022. 8. 19. java DTO,VO List 정렬 list.stream().sorted(Comparator.comparing(DTO::getId)).collect(Collectors.toList()) 2022. 8. 19. Each child in a list should have a unique "key" prop. -- error { list.map(row => ( {row} ) ) } -- 배열로 map 함수를 사용해 JSX 리스트를 구현할 때 key prop을 자식 컴포넌트마다 넣어줘야 한다. {row} -- 해결 key={row} 2022. 8. 18. 이전 1 ··· 7 8 9 10 11 12 13 ··· 33 다음 반응형