하루하나
close
프로필 배경
프로필 로고

하루하나

  • ALL (217)
    • 쿠베플로우 kubeflow (1)
    • React Native (1)
      • Expo (1)
    • Programming (187)
      • spring+jwt+react (4)
      • wordpress (3)
      • Vultr (1)
      • Flutter (3)
      • Vue-project (1)
      • Vue-tip (17)
      • AngularJS (12)
      • Bootstrap (2)
      • Book (1)
      • CentOS (5)
      • Code (0)
      • Css (13)
      • Docker (7)
      • Eclipse (1)
      • Freemarker (1)
      • Git (9)
      • Front-End (6)
      • Error (7)
      • Gulp.js (0)
      • Java (12)
      • Python (5)
      • Javascript (19)
      • JPA (5)
      • jQuery (2)
      • Mac (6)
      • MySql (4)
      • Springboot (21)
      • Springboot-blog (0)
      • Daily (1)
      • Springboot-tip (3)
      • Spring (1)
      • Thymeleaf (1)
      • Tomcat (1)
      • Typescript (3)
      • Tool (5)
      • Sql (1)
      • prisma (1)
      • react (1)
    • Life (14)
      • Review (0)
      • Tip (3)
      • 리뷰 (8)
      • 부동산 (2)
  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

[springboot] jar 실행시 profile 선택

jar로 단독실행시 프로파일을 설정해줄수 있다. application-prod.properties 파일을 만들고 아래와 같이 실행 java -jar sample.jar --spring.profiles.active=prod

  • format_list_bulleted Programming/Springboot
  • · 2019. 1. 9.
  • textsms
[springboot] springboot + spring security + jpa + thymeleaf

[springboot] springboot + spring security + jpa + thymeleaf

Springboot에 Spring security를 이용하여 인증처리를 해보도록 하겠습니다. 사용된 기술은 아래와 같습니다. 1. Springboot 1.5.3 2. Spring 4.3.9 3. Spring Security 4.2.3 4. Thymeleaf 2.1.5 5. Tyhmeleaf Extras Spring Security4 6. Embed tomcat 7. Maven 8. Java 8 1. Project Directroy 2. Project Dependencies pom.xml 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566..

  • format_list_bulleted Programming/Springboot
  • · 2017. 6. 15.
  • textsms

[springboot] mybatis-multiple-datasource / db 여러개 사용

- GoalSpringBoot에서 mybatis에 DB를 여러개 사용하기 위한 설정 - Time30min - Enviromentjava 1.8, springboot 1.5.2 - Tutorial개발을 하다보면 데이터베이스를 여러개 운영 해야하는 경우가 생긴다. mybatis를 이용할 경우 설정하는 방법인데, 결론적으로는 마음에 들진 않는다. JPA로 설정하는법은 아래 포스팅을 참고2017/03/24 - [Springboot] - [springboot] jpa multiple datasource 우선 기본적으로 application.properties에 DB정보를 작성한다. 편의를 위해 DB는 H2를 사용한다. # DB1spring.db1.datasource.driverClassName=org.h2.Dri..

  • format_list_bulleted Programming/Springboot
  • · 2017. 3. 29.
  • textsms

[springboot] springboot starter maven dependency

매번 설치 안하고 나중에 설정하려다보니 주소가 생각 잘 생각 안나 기록 4.0.0 com.exampledemo0.0.1-SNAPSHOTjar testspringboot-jpa-pagination org.springframework.bootspring-boot-starter-parent1.5.2.RELEASE UTF-8UTF-81.8 org.springframework.bootspring-boot-starter-aoporg.springframework.bootspring-boot-starter-data-jpaorg.springframework.bootspring-boot-starter-data-restorg.springframework.dataspring-data-rest-hal-browserorg.fly..

  • format_list_bulleted Programming/Springboot
  • · 2017. 3. 27.
  • textsms
[springboot] jpa multiple datasource

[springboot] jpa multiple datasource

- GoalJPA를 사용할 때 여러 데이터베이스에 접속해야 하는 경우 필요한 설정 - Time15min - Enviromentspringboot 1.5, java 1.8, STS3.7, maven - Tutorial핵심은 JPA repository를 관리하는 설정을 필요한 데이터베이스 수만큼 생성해 놓고 사용한다. 자세한 소스는 아래 github에서 확인 할 수 있다. https://github.com/beans9/springboot-jpa-multiple-datasource application에 alpha에 url과 beta에 url을 따로 설정해 놓는다. (편의상 데이터베이스는 H2를 사용한다.) application.propertiesjdbc.driverClassName=org.h2.Driver ..

  • format_list_bulleted Programming/Springboot
  • · 2017. 3. 24.
  • textsms
[springboot] h2 console 사용하기

[springboot] h2 console 사용하기

간단한 개발작업을 할떄 H2메모리 DB를 사용할 떄가 있는데, 작업 후 DB를 조회해보고자 할때 h2 console을 사용하여 확인 할 수 있다. springboot에 application.properties 설정에 spring.h2.console.enabled=truespring.h2.console.path=/h2-console 두줄을 추가한다. 그리고 springboot 웹을 구동 시킨 후에 해당 context로 접속해 보면 아래와 같이 로그인 창이 나온다. Connect를 눌러서 들어가보면 내용을 확인 할수 있고, sql을 작성해서 테스트 해 볼수도 있다.

  • format_list_bulleted Programming/Springboot
  • · 2017. 3. 22.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • navigate_next
반응형
공지사항
전체 카테고리
  • ALL (217)
    • 쿠베플로우 kubeflow (1)
    • React Native (1)
      • Expo (1)
    • Programming (187)
      • spring+jwt+react (4)
      • wordpress (3)
      • Vultr (1)
      • Flutter (3)
      • Vue-project (1)
      • Vue-tip (17)
      • AngularJS (12)
      • Bootstrap (2)
      • Book (1)
      • CentOS (5)
      • Code (0)
      • Css (13)
      • Docker (7)
      • Eclipse (1)
      • Freemarker (1)
      • Git (9)
      • Front-End (6)
      • Error (7)
      • Gulp.js (0)
      • Java (12)
      • Python (5)
      • Javascript (19)
      • JPA (5)
      • jQuery (2)
      • Mac (6)
      • MySql (4)
      • Springboot (21)
      • Springboot-blog (0)
      • Daily (1)
      • Springboot-tip (3)
      • Spring (1)
      • Thymeleaf (1)
      • Tomcat (1)
      • Typescript (3)
      • Tool (5)
      • Sql (1)
      • prisma (1)
      • react (1)
    • Life (14)
      • Review (0)
      • Tip (3)
      • 리뷰 (8)
      • 부동산 (2)
최근 글
인기 글
최근 댓글
태그
  • #error
  • #JPA
  • #MySQL
  • #sts
  • #css
  • #springboot
  • #Vue
  • #AngularJS
  • #GIT
  • #javascript
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바