일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Gradle
- AWS
- IntelliJ
- 요리
- ubuntu
- devops
- php
- elasticsearch
- java
- 맛집
- ReactJS
- springboot
- tool
- jsp
- docker
- Spring
- linux
- Git
- laravel
- Oracle
- javascript
- MySQL
- JPA
- it
- Spring Boot
- redis
- Design Patterns
- jenkins
- db
- Web Server
- Today
- Total
목록Java/Spring (75)
아무거나
스케줄링 Scheduler Spring Boot에서 @EnableScheduling, @Scheduled를 사용한 스케줄링 구현 메인 메소드가 있는 애플리케이션 구동 클래스인 Application.java에 @EnableScheduling 설정 및 @Bean 추가 .... import org.springframework.scheduling.annotation.EnableScheduling; @SpringBootApplication @EnableScheduling public class Application { public static void main(String[] args) { ApplicationContext ctx = SpringApplication.run(Application.class, arg..
[준비]해당 포스트는 IntelliJ IDE기반이므로 https://bkjeon1614.tistory.com/56을 참고하여 먼저 IntelliJ와 tomcat을 연동하자. 1. build.gradle dependencies 추가dependencies { ... providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat’ ... } 2. SpringBootServletInitializer에 configure추가 import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org..
Spring Boot 기준으로 작업하는 도중에 실행되는 SQL Log를 직접 콘솔에서 확인하고 싶었다.그래서 logback.xml에서 아래와 같이 설정하면 된다. [logback.xml]level을 DEBUG로 해놓아야지만 로그가 출력된다. INFO로 설정하면 출력되지 않는다.logger name은 출력하고 싶은 패키지 경로를 지정하면 된다. ... * 출력은 아래와 같이 패키지 경로와 메소드명, 그리고 쿼리문과 파라미터 및 개수 등이 출력된다.
스프링 부트에서 테스트 코드를 작성할 때 간단하게 기술한것이다. // 버전: 2.0.6 testCompile('org.springframework.boot:spring-boot-starter-test') import com.wmp.admin.category.entity.VendorCategoryMap; import com.wmp.admin.category.mapper.CategoryMapMapper; import com.wmp.admin.category.mapper.CategoryMapRequireMapper; import java.time.LocalDateTime; import org.junit.Test; import org.junit.runner.RunWith; import org.springfram..
해당 포스트는 Spring Boot와 VueJS를 연동하는 과정을 작성했다. 1. Gradle에 Thymeleaf 설정dependencies { compile('org.springframework.boot:spring-boot-starter-thymeleaf') compile('org.springframework.boot:spring-boot-starter-web') .... } 2. src/main/resources/application.yml 설정 ( thymeleaf의 경우 html5 모드가 기본으로 설정되어 있어 아래의 설정을 추가해주어야 meta tag로 인한 에러가 발생하지 않는다. )spring: profiles: local .... thymeleaf: cache: false mode: LE..