plming(170)
-
프롤로그에서는 콘텐츠가 허용되지 않습니다.
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 -
local에서 작업하던 git repository gitlab에 올리기
Local에서 혼자 작업하던 git repository를 gitlab에 올리려면 0. 먼저 gitlab에 SSH Key를 등록해두는 것이 좋다. https://lilymate.tistory.com/741 1. gitlab에 project를 생성해놓고 (Clone with SSH로) repository 주소를 복사한다. 2. local repository에서 아래 명령을 입력한다. 위에서 복사한 repository주소를 뒤에 붙여준다. git remote add origin 복사한Repository주소(예: git@gitlab.com:xxx.git) 3. GIT PUSH git push -u origin master gitlab 해당 project에 보면 push한 repository가 생겼다.
2023.11.07 -
gitlab에 SSH Key 등록
이미 내 컴퓨터 안에서 git repository를 만들어서 commit 작업을 하고 있다가 외부의 gitlab에 push 하고 싶다면...? 먼저 내 컴퓨터에 대한 SSH Key를 등록해놔야 계속해서 작업하기에 편하다. 1. (윈도에서) Git Bash를 실행 (이미 git을 쓰고 있었으므로 당연히 설치되어있다) 2. 아래 명령으로 SSH Key를 생성한다. ssh-keygen $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/AAA/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase a..
2023.11.07 -
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 -
원인모를 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