Spring (4) 썸네일형 리스트형 [Spring] Fcm init 1. 초기 설정 Firebase -> 해당 프로젝트 -> 프로젝트 설정 -> 서비스 계정 비공개키를 resources/firebase에 넣고 위 예제 코드를 Application에 추가한다 @Bean public void run() throws Exception { try { FirebaseApp.getInstance(); } catch (Exception e) { try { String path = System.getProperty("user.dir"); FileInputStream serviceAccount = new FileInputStream(path + "/src/main/resources/firebase/serviceAccountKey.json"); FirebaseOptions options .. [Spring] REST API 부하 테스트 출시전 동시 사용자수를 유추하기위해 부하테스트 1. 다운로드 https://jmeter.apache.org/download_jmeter.cgi Apache JMeter - Download Apache JMeter Download Apache JMeter We recommend you use a mirror to download our release builds, but you must verify the integrity of the downloaded files using signatures downloaded from our main distribution directories. Recent releases (48 hours) may not yet be ava jmeter.apache.org apac.. [NAS] Spring Boot RESTAPI 나스 배포 관련 파일 설치 1. 도커 설치 2. tomcat 설치 3. 컨테이너 생성 접속 경로 {nas ip}:8080 War 파일 생성 및 실행 1. vscode clean >> package 순으로 실행 2. war 나스로 옮기기 3. 실행중인 도커 확인 docker ps 4. tomcat wabapp에 war파일 옮기기 docker cp {war 경로} {tomcat container name}:/usr/local/tomcat/webapps/ 5. 파일 확인 docker exec -it tomcat1 /bin/bash https://stir.tistory.com/5 도커(docker) + 톰캣(tomcat)으로 war 배포하기 개발환경 AWS + Ubuntu 16.04 Server 설치 1. Do.. [유틸] RestAPI model,dto,controller 파일 자동 생성(Mybatis) 1. 코드 package com.jusunja.jusunja.util; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.Scanner; public class MkdirAndFileUtil { static Boolean flag = true; static ArrayList filear = new ArrayList(); static ArrayList folderar = new ArrayList(); public static void main(String[] args) .. 이전 1 다음