스프링프레임워크(7)
-
springboot error - Could not write JSON: Can not start an array, expecting field name (context: Object)
에러 발생 .HttpMessageNotWritableException: Could not write JSON: Can not start an array, expecting field name (context: Object); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not start an array, expecting field name (context: Object) (through reference chain: org.springframework.hateoas.EntityModel["content"])] 위의 에러는 테스트 코드를 돌리는데 발생. @Test @DisplayName("입력 값이 잘못된 경우에..
2022.03.25 -
springbootStudy07 - SpringBoot + Jpa + Mustache로 개발
이 강좌는 매주 화요일 사외 스터디를 통해 작성! 스프링 부트와 AWS로 혼자 구현하는 웹서비스 책을 선정!(이동욱 저) 내가 생각하는 커리큘럼이랑 같아서 선정! 음..그런데 책 대로 따라하면 바로 되지는 않음 ㅋㅋㅋ 변경사항 많음이 아쉬움! 지난 스터디 2021.10.13 - [OpenSource/Spring Boot] - springbootStudy01 - Jetbrains toolbox 설치 2021.10.14 - [OpenSource/Spring Boot] - springbootStudy02 - 그래들 기반 springboot project만들기! build.gradle 이해하기 2021.10.19 - [OpenSource/Spring Boot] - springbootStudy03-인텔리J(Int..
2021.12.20 -
springbootStudy02 - 그래들 기반 springboot project만들기! build.gradle 이해하기
이 강좌는 매주 화요일 사외 스터디를 통해 작성! 스프링 부트와 AWS로 혼자 구현하는 웹서비스 책을 선정!(이동욱 저) 내가 생각하는 커리큘럼이랑 같아서 선정! 2021.10.13 - [OpenSource/Spring Boot] - springbootStudy01 - Jetbrains toolbox 설치 project 생성! 프로젝트는 spring 기본 셋팅을 지원해주는것을 사용하지 않고 쌩짜로 만들어봅니다. 왜냐면 build.gradle를 이해하기 위함이져! 기본 디폴트로 아래와 같이 build.gradle이 셋팅이 됩니다. plugins { id 'java' } group 'kr.pe.acet' version '1.0-SNAPSHOT' repositories { mavenCentral() } dep..
2021.10.14 -
@PreDestory란?
이 메소드는 소멸 메소드이며 이전 @PostConstruct와 상반된 개념이다. JSR-250 스펙에 따라 구현 되었다. (걍 자바에서 사용하려면 또는 springframework 2.5미만 버전에서는 javax.annotation 패키지 관련 라이브러리가 필요 함.) Springframework 2.5부터는 사용 가능! 현재 프로젝트에서는 @PostConstruct와 @PreDestory만 사용하고 있다. 하지만 찾아보니 여러가지 방법이 존재했다. 아래의 멋진 사이트를 참고하면 된다. 정리 및 공유 감사용! madplay.github.io/post/spring-bean-lifecycle-methods 그 중 흥미로운 테스트가 있었는데 바로 생성자/소멸자 호출 순서 테스트이다. import javax.a..
2020.11.12 -
springbatch setting시 오류: Spring Boot plugin requires Gradle 5 (5.6.x only) or Gradle 6 (6.3 or later). The current version is Gradle 4.10.3
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#appendix-dependency-versions Spring Boot Reference Documentation This section goes into more detail about how you should use Spring Boot. It covers topics such as build systems, auto-configuration, and how to run your applications. We also cover some Spring Boot best practices. Although there is nothing particularly spe docs.s..
2020.08.06 -
[Ace-T의 Spring강좌] Step 06. Spring @MVC 분석-03
[Ace-T의 Spring강좌] Step 06. Spring @MVC 분석-03 저번 시간에는 spring context 구조 잡기, bootstrap 연동해보기 등등을 해보았네요!이번 시간에는~! mvc구조를 한번 들어가보려고 합니다! ㅎㅎ두둥~출처 : 토비의 스프링 3.2 / 토비형님 항상 감사합니다! 스프링책은 토비님 책이 짱짱맨! 아래의 소스링크가 안된다는 제보를 주셔서 소스는 아래의 github를 사용해주시면 감사하겠습니다.제보주신 장땡땡님! 감사합니다^^https://github.com/ace-t/rndStart/ 우선 아래의 그림을 보시죵!~차근차근 하나씩 MVC의 각 요소와 프론트 컨트롤러(DispatcherServlet)가 어떻게 협력해서 일하는지를 알아봅시다!(1) DispatcherS..
2014.05.23