260212_01_DOC: 프로젝트 전체에 구글 java 스타일 적용
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
package com.kri.contact.server.config;
|
||||
|
||||
import com.querydsl.jpa.impl.JPAQueryFactory;
|
||||
import jakarta.persistence.EntityManager;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import jakarta.persistence.EntityManager;
|
||||
import com.querydsl.jpa.impl.JPAQueryFactory;
|
||||
|
||||
@Configuration
|
||||
@RequiredArgsConstructor
|
||||
public class QueryDSLConfig {
|
||||
|
||||
private final EntityManager entityManager;
|
||||
private final EntityManager entityManager;
|
||||
|
||||
@Bean
|
||||
public JPAQueryFactory jpaQueryFactory() {
|
||||
return new JPAQueryFactory(entityManager);
|
||||
}
|
||||
@Bean
|
||||
public JPAQueryFactory jpaQueryFactory() {
|
||||
return new JPAQueryFactory(entityManager);
|
||||
}
|
||||
}
|
||||
@@ -8,13 +8,13 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
@Configuration
|
||||
public class WebResourceConfig implements WebMvcConfigurer {
|
||||
|
||||
@Value("${kri.contact-senario.upload-base-dir}")
|
||||
private String uploadBaseDir;
|
||||
@Value("${kri.contact-senario.upload-base-dir}")
|
||||
private String uploadBaseDir;
|
||||
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
// /contact-senario/** → /data/upload-file/contact-senario/** 매핑
|
||||
registry.addResourceHandler("/contact-senario/**")
|
||||
.addResourceLocations("file:" + uploadBaseDir + "/");
|
||||
}
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
// /contact-senario/** → /data/upload-file/contact-senario/** 매핑
|
||||
registry.addResourceHandler("/contact-senario/**")
|
||||
.addResourceLocations("file:" + uploadBaseDir + "/");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user