springboot(5)
-
프롤로그에서는 콘텐츠가 허용되지 않습니다.
Test를 실행했는데, Error가 났다. xxxTest [Fatal Error] :1:1: 프롤로그에서는 콘텐츠가 허용되지 않습니다. ::: org.springframework.restdocs.payload.PayloadHandlingException: Cannot handle application/json;charset=UTF-8 content as it could not be parsed as JSON or XML Req로 사용하는 Class의 인자에 한글 이 들어가 있다면 1단, 영문 인자로 바꾸면 사라진다. reqDto.setA( "한글" ); 한글 인자여도, Test 실패하지 않는 방법 좀;;;
2023.12.20 -
Apache + SpringBoot 연동
Port : http(80) → https(443) → ajp(9010) → SpringBoot로 연결 ajp Port는 임의로 정한 것임. OS : ubuntu Apache 설치 sudo apt-get update sudo apt-get install apache2 80 port로 요청이 들어오면 443 port로 전달하도록 설정 sudo vi /etc/apache2/sites-available/000-default.conf ... RewriteEngine on RewriteCond %{SERVER_NAME} = aaa.bbb.ccc RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] mod-jk 설치 (Apache와 Spri..
2023.10.19 -
IntelliJ에서 실행시 build-info.properties 생성되지 않을 때
IntelliJ에서 spring boot, maven 환경에서 실행 시 실행되지 못하고, 아래같은 형태의 메시지를 표시하고 죽는다면... Field ... in ... required a bean of type 'org.springframework.boot.info.BuildProperties' that could not be found. The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true) The following candidates were found but could not be injected: - Bean method 'build..
2023.10.11 -
[책] 처음부터 제대로 배우는 스프링 부트
스프링으로 하나하나 해줘야 했던 것들을 혁신적으로 가볍게 만들어놓은 스프링 부트를 개념부터 코드를 따라 가볍게 배워서 스프링 부트를 부프링 부트답게 사용할 수 있도록 도와주는 책이다. 스프링 부트의 핵심 기능들을 간결하고 정확하게 왜 이렇게 하는지, 철학까지 이해를 시켜준다. 복잡한 세부 사항들도 기술적인 통찰력과 노하우로 쉽게 풀어주며 필요한 레퍼런스도 챙겨주어 더욱 쉽게 이해할 수 있다. 프로젝트 생성부터 설정, DB, JPA, 시큐리티, 테스트, 배포까지 후루룩 섭렵할 수 있고 더불어 리액트까지 버무려주니 금상첨화 같다. "한빛미디어 활동을 위해서 책을 제공받아 작성된 서평입니다."
2023.07.23 -
원인모를 LazyInitializationException - no Session
@Entity Class의 property에서 다른 @Entity Class를 참조하며 @ManyToOne(fetch = FetchType.LAZY) 를 주었다면 해당 property로 접근하려고 할 때는...? 뭐 다른 일이 일어날게 없다... ㅡㅡ;;; 뭐 흔하게 계~~~속 잘~~~ 써 왔던 경우인데... 어느 날 갑자기, 뜬금없이, 아무리 생각해도 이해를 하지 못할... 아래처럼 LazyInitializationException 이 나왔다면... org.hibernate.LazyInitializationException: could not initialize proxy [common.model.entity.P#2915] - no Session at org.hibernate.proxy.Abstract..
2020.05.25