hello jiniworld

hello jiniworld

  • hello jiniworld (218)
    • Spring (58)
      • Basic (15)
      • Spring Docs (6)
      • Spring Data JPA Tutorial (14)
      • Spring Boot Tutorial (17)
      • Jersey (6)
    • Go (17)
    • Dev (10)
      • Clean Architecture (3)
      • System Design (2)
      • Documents (2)
      • Client (2)
    • Infrastructure (5)
      • Docker (1)
      • Kubernetes (4)
    • DB (19)
      • MySQL (8)
      • MariaDB (9)
      • Oracle (1)
    • Java (52)
      • Basic (14)
      • coding test (27)
      • Effective Java (11)
    • Python (7)
      • Flask (1)
      • Basic (3)
      • Effective Python (1)
      • coding test (2)
    • Front-end (3)
      • Vanilla JS (2)
      • Basic (1)
    • Linux (11)
      • Basic (2)
      • Command-line (9)
    • Web Server (6)
      • CentOS 7 (5)
      • Oracle Linux 8 (1)
    • WAS (3)
    • CentOS 7 (17)
      • Basic (9)
      • Jenkins (8)
    • Etc (10)
      • Windows 10 (3)
      • trash bin (3)
05-31 08:05
  • 전체보기
  • 방명록
  • jini's GitHub
  • demo api
  • chaeking api
RSS 피드
로그인
로그아웃 글쓰기 관리

hello jiniworld

컨텐츠 검색

태그

go Spring JAX-RS spring docs Java jenkins MySQL Jersey Spring Boot Spring Boot Tutorial Command-Line effectivejava MariaDB SpringBoot2 week1 centos7 springboot codility https hackerrank

최근글

댓글

공지사항

  • SSL 인증서 설정하기

아카이브

Spring(58)

  • [Spring Boot] 이미지 파일 경로 외부에 설정하기 with yml

    2019.07.31
  • Swagger 2 에서 Pageable 이용하기

    2019.05.29
  • @Entity에 정의한 ddl 속성 db에 update 하기

    2019.03.29
  • spring boot 에서 JPA 사용하기 with MySQL

    2019.03.06
[Spring Boot] 이미지 파일 경로 외부에 설정하기 with yml

실서버에서 배포하여 실행중인 웹 애플리케이션 상에서, 웹 사이트에 접속하여 파일 및 이미지 업로드를 실시할때, 이미지 업로드 경로를 웹 애플리케이션 내부로 설정할 경우 (예를 들면 웹애플리케이션 정적 파일 저장 위치(css, js, img 폴더가 위치하는 곳) 내부) 새로 웹 애플리케이션을 배포할시, 실행중에 추가했던 이미지 파일들이 없어지는 현상이 발생합니다. 웹 애플리케이션 상에서 별도로 추가하는 이미지 파일은 웹 애플리케이션 내부에 위치한 정적폴더 위치가 아닌, 별도의 공간에 저장되도록 설정해야 합니다. 이번 포스팅에서는 spring boot 기반의 웹 애플리케이션 서버 실행 중 저장되는 이미지 파일을 특정 폴더 경로에 저장되도록 설정하는 방법을 알아봅니다. 그러기 위해서 필요한 것은? profil..

2019. 7. 31. 18:47
Swagger 2 에서 Pageable 이용하기

Swagger 에서 Pageable 이용하기 @RequestMapping("/stores") @Api(tags = "store") @RestController public class StoreController { @ApiOperation(value = "메뉴 조회 with paging", notes="store의 id를 이용하여 가맹점의 메뉴를 페이징 처리하여 조회합니다.") @GetMapping(value="/{storeId}/menus") public Map findAllMenuByMenuId(@ApiParam(name="storeId", value="store 테이블 id", required=true) @PathVariable("storeId") long storeId, @PageableDefau..

2019. 5. 29. 10:43
@Entity에 정의한 ddl 속성 db에 update 하기

Entity에 정의한 ddl 속성을 db에 create 또는 update하기. 컬럼에 대한 속성을 설정하기. ColumnDefinition으로 세부사항 설정하기. 프로퍼티 파일에 spring.jpa.generate-ddl 속성을 true로 설정하고 (또는, spring.jpa.properties.hibernate.hbm2ddl.auto 속성을 update로 설정) 애플리케이션이 start되면서, 해당 table이 존재하지 않을 경우, entity에 설정한 대로 테이블이 자동 생성됩니다. spring: profiles: local datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: "jdbc:mysql://127.0.0.1:3306/foodtruck..

2019. 3. 29. 11:20
spring boot 에서 JPA 사용하기 with MySQL

spring data jpa를 이용하여 spring boot 환경에서 간편하게 MySQL을 연동하는 방법을 배워봅시다. pom.xml 에 dependency 추가 db 접속정보를 프로퍼티에 설정 database 관련 config파일 설정 db 조회 1. pom.xml 에 dependency 추가 먼저, mysql db와 jpa를 이용하기 위한 dependencies를 pom.xml에 추가합니다. org.springframework.boot spring-boot-starter-data-jpa mysql mysql-connector-java runtime 2. db 접속정보를 프로퍼티에 설정 그리고, 프로퍼티파일에 db접속정보를 설정합니다. spring: profiles: active: local datas..

2019. 3. 6. 17:49
1 ··· 7 8 9 10
JINIWORLD
© jiniworld. All rights reserved.

티스토리툴바