Fix : common
This commit is contained in:
parent
3d0ed4c268
commit
fb336357fb
@ -31,13 +31,13 @@ import java.util.Map;
|
|||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class RedisConfig {
|
public class RedisConfig {
|
||||||
|
|
||||||
@Value("${spring.redis.host}")
|
@Value("${spring.data.redis.host}")
|
||||||
private String redisHost;
|
private String redisHost;
|
||||||
|
|
||||||
@Value("${spring.redis.port}")
|
@Value("${spring.data.redis.port}")
|
||||||
private int redisPort;
|
private int redisPort;
|
||||||
|
|
||||||
@Value("${spring.redis.password:}")
|
@Value("${spring.data.redis.password:}")
|
||||||
private String redisPassword;
|
private String redisPassword;
|
||||||
|
|
||||||
private final ObjectMapper objectMapper;
|
private final ObjectMapper objectMapper;
|
||||||
|
|||||||
@ -44,6 +44,13 @@ ai-api:
|
|||||||
# api-key: ${CLAUDE_API_KEY:}
|
# api-key: ${CLAUDE_API_KEY:}
|
||||||
# base-url: https://api.anthropic.com
|
# base-url: https://api.anthropic.com
|
||||||
|
|
||||||
|
# 외부 서비스 설정
|
||||||
|
external:
|
||||||
|
services:
|
||||||
|
review: ${EXTERNAL_SERVICES_REVIEW:http://localhost:8082}
|
||||||
|
store: ${EXTERNAL_SERVICES_STORE:http://localhost:8081}
|
||||||
|
member: ${EXTERNAL_SERVICES_MEMBER:http://localhost:8080}
|
||||||
|
|
||||||
springdoc:
|
springdoc:
|
||||||
api-docs:
|
api-docs:
|
||||||
path: /api-docs
|
path: /api-docs
|
||||||
@ -54,4 +61,25 @@ management:
|
|||||||
endpoints:
|
endpoints:
|
||||||
web:
|
web:
|
||||||
exposure:
|
exposure:
|
||||||
include: health,info,metrics
|
include: health,info,metrics
|
||||||
|
|
||||||
|
# AI 서비스 설정
|
||||||
|
ai:
|
||||||
|
azure:
|
||||||
|
cognitive:
|
||||||
|
endpoint: ${AI_AZURE_COGNITIVE_ENDPOINT:https://your-cognitive-service.cognitiveservices.azure.com}
|
||||||
|
key: ${AI_AZURE_COGNITIVE_KEY:your-cognitive-service-key}
|
||||||
|
openai:
|
||||||
|
api-key: ${AI_OPENAI_API_KEY:your-openai-api-key}
|
||||||
|
|
||||||
|
# Azure Event Hub 설정
|
||||||
|
azure:
|
||||||
|
eventhub:
|
||||||
|
connection-string: ${AZURE_EVENTHUB_CONNECTION_STRING:Endpoint=sb://your-eventhub.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=your-key}
|
||||||
|
consumer-group: ${AZURE_EVENTHUB_CONSUMER_GROUP:analytics-consumer}
|
||||||
|
event-hubs:
|
||||||
|
review-events: ${AZURE_EVENTHUB_REVIEW_EVENTS:review-events}
|
||||||
|
ai-analysis-events: ${AZURE_EVENTHUB_AI_ANALYSIS_EVENTS:ai-analysis-events}
|
||||||
|
storage:
|
||||||
|
connection-string: ${AZURE_STORAGE_CONNECTION_STRING:DefaultEndpointsProtocol=https;AccountName=yourstorageaccount;AccountKey=your-storage-key;EndpointSuffix=core.windows.net}
|
||||||
|
container-name: ${AZURE_STORAGE_CONTAINER_NAME:eventhub-checkpoints}
|
||||||
@ -35,6 +35,9 @@ subprojects {
|
|||||||
|
|
||||||
// Swagger
|
// Swagger
|
||||||
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
|
||||||
|
|
||||||
|
// 맥 의존성 해결
|
||||||
|
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.68.Final:osx-aarch_64'
|
||||||
|
|
||||||
// JWT
|
// JWT
|
||||||
implementation 'io.jsonwebtoken:jjwt-api:0.12.3'
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.3'
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package com.ktds.hi.common.audit;
|
package com.ktds.hi.common.audit;
|
||||||
|
|
||||||
import jakarta.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
|
import jakarta.persistence.EntityListeners;
|
||||||
import jakarta.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
@ -9,6 +10,8 @@ import lombok.NoArgsConstructor;
|
|||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 감사 로그 엔티티
|
* 감사 로그 엔티티
|
||||||
*/
|
*/
|
||||||
@ -16,7 +19,8 @@ import java.time.LocalDateTime;
|
|||||||
@Entity
|
@Entity
|
||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@EntityListeners(AuditingEntityListener.class)
|
||||||
public class AuditLog {
|
public class AuditLog {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@ -30,4 +34,8 @@ public class AuditLog {
|
|||||||
private String userAgent;
|
private String userAgent;
|
||||||
private String ipAddress;
|
private String ipAddress;
|
||||||
private LocalDateTime timestamp;
|
private LocalDateTime timestamp;
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user