Fix : 수정
This commit is contained in:
parent
4f00e5eea8
commit
56e9201693
@ -23,9 +23,7 @@ public class WebConfig implements WebMvcConfigurer {
|
|||||||
.addResourceLocations("classpath:/static/", "classpath:/public/")
|
.addResourceLocations("classpath:/static/", "classpath:/public/")
|
||||||
.resourceChain(false);
|
.resourceChain(false);
|
||||||
|
|
||||||
// favicon.ico 처리
|
registry.addResourceHandler("/static/**")
|
||||||
registry.addResourceHandler("/favicon.ico")
|
.addResourceLocations("classpath:/static/");
|
||||||
.addResourceLocations("classpath:/static/favicon.ico")
|
|
||||||
.resourceChain(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,6 +2,7 @@ package com.ktds.hi.member;
|
|||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 회원 관리 서비스 메인 애플리케이션 클래스
|
* 회원 관리 서비스 메인 애플리케이션 클래스
|
||||||
@ -11,6 +12,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication(scanBasePackages = {"com.ktds.hi.member", "com.ktds.hi.common"})
|
@SpringBootApplication(scanBasePackages = {"com.ktds.hi.member", "com.ktds.hi.common"})
|
||||||
|
@EnableJpaAuditing
|
||||||
public class MemberServiceApplication {
|
public class MemberServiceApplication {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|||||||
@ -1,12 +1,14 @@
|
|||||||
package com.ktds.hi.member.config;
|
package com.ktds.hi.member.config;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
|
||||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JPA 설정 클래스
|
* JPA 설정 클래스
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
|
@EnableJpaAuditing
|
||||||
@EnableJpaRepositories(basePackages = "com.ktds.hi.member.repository")
|
@EnableJpaRepositories(basePackages = "com.ktds.hi.member.repository")
|
||||||
public class JpaConfig {
|
public class JpaConfig {
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.ktds.hi.member.domain;
|
package com.ktds.hi.member.domain;
|
||||||
|
|
||||||
|
import jakarta.persistence.EntityListeners;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@ -7,6 +8,8 @@ import lombok.NoArgsConstructor;
|
|||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 회원 도메인 클래스
|
* 회원 도메인 클래스
|
||||||
* 회원의 기본 정보를 담는 도메인 객체
|
* 회원의 기본 정보를 담는 도메인 객체
|
||||||
@ -15,6 +18,7 @@ import java.time.LocalDateTime;
|
|||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@EntityListeners(AuditingEntityListener.class)
|
||||||
public class Member {
|
public class Member {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.ktds.hi.member.domain;
|
package com.ktds.hi.member.domain;
|
||||||
|
|
||||||
|
import jakarta.persistence.EntityListeners;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@ -8,6 +9,8 @@ import lombok.NoArgsConstructor;
|
|||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 취향 정보 도메인 클래스
|
* 취향 정보 도메인 클래스
|
||||||
* 회원의 음식 취향 및 건강 정보를 담는 도메인 객체
|
* 회원의 음식 취향 및 건강 정보를 담는 도메인 객체
|
||||||
@ -16,6 +19,7 @@ import java.util.List;
|
|||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@EntityListeners(AuditingEntityListener.class)
|
||||||
public class Preference {
|
public class Preference {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|||||||
@ -21,7 +21,6 @@ import java.time.LocalDateTime;
|
|||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@EntityListeners(AuditingEntityListener.class)
|
|
||||||
public class MemberEntity {
|
public class MemberEntity {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user