gradle에서 proxy 설정을 다음과 같이 진행하니 제대로 proxy

 

$ ./gradlew -Dhttp.proxyHost=proxy.igoogle.com -Dhttp.proxyPort=8082 - Dhttps.proxyHost=proxy.igoogle.com -Dhttps.proxyPort=8082 clean build

 

실행 안된다.

 

애플리케이션의 gradle.properties로 변경해야 동작한다.

 

 

systemProp.http.proxyHost=...
systemProp.http.proxyPort=..
systemProp.http.nonProxyHosts=...
systemProp.https.proxyHost=...
systemProp.https.proxyPort=..
systemProp.https.nonProxyHosts=....

Posted by '김용환'
,

MCN

scribbling 2019. 4. 1. 18:18

공부차원에서 작성한 내용..

 

 MCN (Multi Channel Network)

: 유튜브, 아프리카TV 등 동영상 사이트에서 사용되는 방식으로 인기가 높은 중소 창작자(1인 포함)의 콘텐츠 유통/판매/저작권 관리/광고 유치/자금 지원등에 도움을 주고 콘텐츠로부터 나온 수익을 창작자와 나눠 갖는 미디어 사업을 의미한다고 한다..

 

 

https://terms.naver.com/entry.nhn?docId=3543412&cid=42171&categoryId=58478

Posted by '김용환'
,

 

spring boot 2 - JPA를 사용 중에 javax.persistence.TransactionRequiredException: Executing an update/delete query 에러가 발생했다. 

 

 

이전 코드는 아래와 같았는데..

 

@Modifying
@Query(value="update user set vin = ?2 where username = ?1", nativeQuery = true)
void update(String username, String vin);

 

 

Transactional을 추가하니 잘 동작된다. 

 

주의 할 점은 javax.transaction.Transactional을 사용하면 안된다. spring 앱 개발할 때는 spring 만 사용하면 된다.

import org.springframework.transaction.annotation.Transactional;

@Transactional
@Modifying
@Query(value="update user set vin = ?2 where username = ?1", nativeQuery = true)
void update(String username, String vin);

 

 

Posted by '김용환'
,

spring boot2에 jpa에서 native query 를 사용하다가.

 

Validation failed for query for method... 에러를 만났다.

 

@Modifying

@Query("update user u set u.vin = ?2 where u.username = ?1")

void update(String username, String vin);

 

다음과 같이 nativeQuery인지를 알려줘야 더 이상 에러가 발생하지 않는다.

 

@Modifying
@Query(value="update user u set u.vin = ?2 where u.username = ?1", nativeQuery = true)
void update(String username, String vin);

Posted by '김용환'
,