1. Spring Starter Project 생성 2. 기본 설정 Name - 프로젝트명 Type - Maven / Gradle 빌드 및 프로젝트 형태. 둘다 많이 사용합니다. Packaging - Jar / War 선택 jar / war 선택에 따른 차이 비교 프로젝트 구조 jar war war 선택 시 ServletInitializer.java와 src-main-webapp 추가됩니다. 패키징 비교 jar war 실행 형태 jar : java -jar study-springboot-0.0.1-SNAPSHOT.jar war : java -jar study-springboot-0.0.1-SNAPSHOT.war 예전에는 외부 서버에 서비스 하기위해 war 형태로 패키징을 했지만 요즘 클라우드에서 서비스를..
1. 이클립스 설치 - 최신 설치 2. 플러그인 추가 - Gradle IDE Pack 3.8.x + 1.0.x - SpringSource Tool Suite (STS) for Eclipse - properties editor 추가 Help > Install New Software... > Add... Name : properties editor Location : https://propedit.osdn.jp/eclipse/updates/ 목록에서 Properties editor만 선택. 3. Mysql 설치 - DB 작업 create database `dev_kkaok` character set utf8 collate utf8_general_ci; create user 'dev_kkaok_user'@'%..
스프링 레퍼런스 https://docs.spring.io/spring-boot/docs/current/reference/html/ 스프링 가이드 https://github.com/spring-guides https://spring.io/guides#getting-started-guides 스프링부트 https://spring.io/projects/spring-boot Exception 처리 https://spring.io/blog/2013/11/01/exception-handling-in-spring-mvc baeldung https://www.baeldung.com/rest-with-spring-series https://www.baeldung.com/persistence-with-spring-seri..
Spring Application Context Events 1. ContextRefreshedEvent ApplicationContext를 초기화하거나 새로 고칠 때 Spring은 ContextRefreshedEvent를 발생시킵니다. 2. ContextStartedEvent ConfigurableApplicationContext에서 start() 메서드를 호출하여 이 이벤트를 트리거하고 ApplicationContext를 시작합니다. 이 메서드는 일반적으로 명시적 중지 후 빈을 다시 시작하는 데 사용됩니다. 3. ContextStoppedEvent ContextStoppedEvent는 ConfigurableApplicationContext에서 stop() 메서드를 호출하여 ApplicationCont..
@SpringBootApplication public class ExampleApplication { @PostConstruct public void started() { TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); Locale.setDefault(Locale.KOREA); } public static void main(String[] args) { SpringApplication.run(ExampleApplication.class, args); } } 끝 ~~~
형식 %[argument_index$][flags][width]conversion Conversion Description s 문자 d 숫자 x 16진수 o 8진수 f 실수 e.g. String strTags = "학교종이 %s 어서 모이자 선생님이 우리를 %s %d"; strTags = String.format(strTags, "땡땡땡", "기다리신다", 12); System.out.println(strTags); 결과 학교종이 땡땡땡 어서 모이자 선생님이 우리를 기다리신다 12 옵션 테스트 flag가 '-'인 경우 왼쪽 정렬이 된다. 길이 설정이 글자 보다 긴 경우 공백으로 채워진다. e.g. System.out.println("12345678901234567890"); System.out.print..
1. string to array const str = value.split(',') // 구분자 2. array to string const str = arr.join(",") 3. array to set const set = new Set(arr) 4. set to array const arr = Array.from(set) 5. array foreach const arr = v.split(','); const newArr = [] arr.forEach(element => { if(element) newArr.push(element.trim()) }); 6. 배열에 값 추가 // push 마지막에 추가 arr.push(item) // unshift 처음에 추가 arr.unshift("하나") 7. s..
중복 체크 등 함수 호출할 때 예시입니다.
로컬에서 잘 작동하던 것이 AWS Redis로 변경하고 아래와 같은 메시지가 발생하였습니다. Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MOVED 13863 **.**.**.**:6379 지속적으로 발생하는 것이 아니고 정상이었다가 또 재기동하면 발생하고 다시 재기동하면 정상이고 그런 상태이었습니다. 기존 소스 @EnableRedisRepositories @Configuration @RequiredArgsConstructor public class RedisConfiguration { private final RedisProperties redisProperties; @Bean public ..
- Total
- Today
- Yesterday
- 그리드
- AG-GRID
- spring
- mybatis
- java
- UI
- Spring Boot
- REST
- mapToList
- RESTful
- ag grid
- thymeleaf
- 샘플
- 스프링부트
- lombok
- listToMap
- 스프링
- 엑셀
- Javascript
- example
- SHEETJS
- sample
- restful서비스
- oracle
- 메시지
- springboot
- cache
- 설정
- 예제
- 타임리프
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |