본문 바로가기 메뉴 바로가기

Grand_J

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Grand_J

검색하기 폼
  • 전체!!차렷 (357)
    • Java & Spring & SpringBoot (103)
    • DB & Redis (35)
    • DevOps (28)
    • React & Vue (27)
    • GitHub & Gitlab (11)
    • NodeJS (14)
    • JSP & JavaScript (47)
    • Kendo UI (15)
    • Wordpress (6)
    • HELLO!! (4)
    • etc (65)
  • 방명록

Java & Spring & SpringBoot (103)
IntelliJ mvn(maven) deploy 세팅_메이븐 설치 X

IntelliJ mvn(maven) deploy 세팅_메이븐 설치 X Nexus에 배포 기준 세팅 작업 1. settings.xml 세팅 File > Settings > Build, Execution, Deployment > Build Tools > Maven > User settings file > Override 체크 해당 위치에 settings.xml 파일 생성 Releases test test1 Snapshots test test1 maven-default-http-blocker external:http:* Pseudo repository to mirror external repositories initially using HTTP. http://0.0.0.0/ true 2. maven confi..

Java & Spring & SpringBoot 2023. 9. 12. 11:28
Spring boot QueryDsl 세팅 (IntelliJ, maven)

Spring boot QueryDsl 세팅 (IntelliJ, maven) 1. dependency 추가 querydsl-apt: 쿼리 타입(Q-Class)을 생성시 필요 querydsl-jpa: QueryDSL JPA 라이브러리 2. plugIn 추가 pom.xml ... ... org.springframework.boot spring-boot-starter-data-jpa com.h2database h2 runtime jakarta.annotation jakarta.annotation-api 2.1.1 jakarta.persistence jakarta.persistence-api 3.1.0 com.querydsl querydsl-apt provided jakarta 5.0.0 com.querydsl ..

Java & Spring & SpringBoot 2023. 9. 4. 14:29
Spring boot 에러 NoClassDefFoundError: jakarta/persistence/EntityManagerFactory 해결방법

Spring boot 에러 NoClassDefFoundError: jakarta/persistence/EntityManagerFactory 해결방법 개발환경 : Spring boot 3.0.9 기존 JPA 에서 javax.xxx 를 import 하였는데 버전이 올라가면서 jakarta에 해당 클래스가 없음 dependency 추가 // pom.xml ... jakarta.annotation jakarta.annotation-api 2.1.1 jakarta.persistence jakarta.persistence-api 3.1.0 끗ㅈㅈ34#!@$!

Java & Spring & SpringBoot 2023. 8. 30. 17:03
Spring Boot 리다이렉트 시 Https > Http 로 변경 이슈, 도메인 > real ip 변경 이슈

Spring Boot 리다이렉트 시 Https > Http 로 변경 이슈 서버 환경 : 내장 undertow, docker, nginx String Boot application.properties or application.yml 스크립트 추가 #### Server Properties server: forward-headers-strategy: NATIVE Http.Status 302, 301 리다이렉트 시 프로토콜 유지 해줌 리다이렉트 시 도메인 > real ip 변경 이슈 Request URL (https://도메인) > Respons Headers / Location (https://real ip) 서버 환경 : 내장 undertow, docker, nginx nginx에서 옵션 변경을 통해 해결..

Java & Spring & SpringBoot 2023. 8. 25. 15:53
Spring Boot 내장 Was (tomcat, undertow) Https 적용 방법

Spring Boot 내장 Was (tomcat, undertow) Https 적용 방법 1. https를 사용하기 위해 키저장소를 만든다 - 저장할 디렉토리에서 커맨드 창을 띄우로 아래 스트립트를 작성한다 keytool -genkey -alias [키스토어명] -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore [키스토어파일이름] -validity 3650 예) keytool -genkey -alias test-keystore -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore test-keystore.p12 -validity 3650 각 옵션 설명 -genkey : 키를 생성 -alias : 키의 별칭 -stor..

Java & Spring & SpringBoot 2023. 8. 24. 14:59
Spring @RequestMapping에서 @PathVariable 허용된 값만 사용하는 법

Spring @RequestMapping에서 @PathVariable 허용된 값만 사용하는 법 @GetMapping("/type/{type:id|name}") public HttpEntity selectTestList(@PathVariable String type){ return new HttpEntity(""); } localhost:8080/type/id 200 ok localhost:8080/type/name 200 ok localhost:8080/type/phone 404 error // @RequestMapping 사용 가능 @RequestMapping("/type/{type:id|name}") Enum을 이용해서 해도 되지만 간단하게 허용 데이터 작업할때 사용 ㄲ듯ㄷㅈㄱ4ㅏㅣ!@#

Java & Spring & SpringBoot 2023. 7. 20. 16:18
Spring 자주 사용하는 어노테이션 설명

Spring 자주 사용하는 어노테이션 설명 @Configuration — config용으로 사용할 때 — @Bean을 수동적으로 빈에 등록 — @Bean을 Bean에 등록할 때 싱글톤이 되도록 함 @Bean — @Configuration이나 @Component 어노테이션이 붙은 클래스 내에 메서드 레벨에서 사용 가능 — @Configuration이나 @Component 없이 사용하면 빈에 등록 되지만 싱글톤 유지가 안됨 — 특정 객체를 의존하는 다른 객체들에게 의존성을 주입하기 위해서 사용 — 개발자가 직접 작성하지 않은 서드파티 라이브러리의 설정과 같은 의존성을 주입받기 위해 사용 — 중복된 이름이 없도록 주의 @Component — 자바 빈으로 등록 시켜 줌 — Spring 프레임워크에서 인스턴스 생..

Java & Spring & SpringBoot 2023. 7. 13. 14:00
Java Map 모든 key, value 가져오기

Java Map 모든 key, value 가져오기 Map map = new HashMap(); map.put("test1", 1); map.put("test2", 2); map.put("test3", 3); // for문 for (Map.Entry e : map.entrySet()) { System.out.println(String.format("Key ::: %s, Value ::: %s", e.getKey(), e.getValue())); } // stream map .entrySet() .stream() .forEach(e -> System.out.println(String.format("Key ::: %s, Value ::: %s", e.getKey(), e.getValue()))); 끗@#%@#..

Java & Spring & SpringBoot 2023. 7. 13. 13:58
Spring Boot Redis Session Key Prefix 변경하기

Spring Boot Redis Session Key Prefix 변경하기 다른 app 와 같이 사용하고 있어 getSession시 에러 남 그래서 prefix로 해당 app 세션 사용 application.yml spring: session: redis: namespace: account:spring:session #기본이 spring:session 생성확인 끅ㄷㅅ@!#$!@#!@~

Java & Spring & SpringBoot 2023. 6. 23. 10:32
Spring @RequiredArgsConstructor 사용 이유

Spring @RequiredArgsConstructor 사용 이유 - 어노테이션을 사용한 생성자 주입 - 의존성 주입 종류로 Constructor(생성자), Setter, Field 타입이 있음 기존 @Service public class UserServiceImpl implements UserService { @Autowired private UserRepository userRepository; } @RequiredArgsConstructor 사용 - @Autowired로 의존성 주입 따로 안함 @Service @RequiredArgsConstructor public class UserServiceImpl implements UserService { private final UserRepositor..

Java & Spring & SpringBoot 2023. 5. 18. 09:27
이전 1 2 3 4 ··· 11 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 리니지m
  • vscode
  • 돌장갑
  • 송내역 카페
  • 고흥 여행
  • 남자 혼자 국내 여행
  • Docker
  • 담양 여행
  • 베스파LX
  • 스쿠터 여행
  • 전국 일주 여행
  • 군산 가볼만한곳
  • 스쿠터 전국 일주
  • 제주도 스쿠터 여행
  • 보성 여행
  • 초원사진관
  • 은파호수공원
  • 국제반점
  • 송내 카페
  • 송내 룸카페
  • 군산 게스트하우스
  • 인터바이크
  • 오라클 DB 링크
  • kendo grid
  • 남자 혼자 여행
  • 군산 여행
  • 송내역 룸카페
  • 나래바이크
  • 윈드스크린
  • 영광 여행
more
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바