Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SunYerim committed Jun 22, 2024
2 parents 25b6db6 + 5bdfb47 commit 3c7fc54
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ build/reports
build/resources
build/test-results
build/tmp
build/resolvedMainClassName
build/resolvedMainClassName

1 change: 1 addition & 0 deletions .idea/modules/sentimentAnalysis.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.sunjoo.sentimentAnalysis.domain.controller;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Slf4j
@RestController
public class AnalysController {

@GetMapping("/getList")
public void getList(@RequestHeader("userNo") String userNo) {
log.info("analys 서비스 호출");
log.info("login user no : " + userNo);
}
}
6 changes: 0 additions & 6 deletions src/main/resources/application.properties

This file was deleted.

28 changes: 28 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
server:
port: 8092
servlet:
context-path: /analyze

spring:
application:
name: sentimentAnalysis
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://sunjoo-sentimentanalysis.clau8wyu484y.ap-northeast-2.rds.amazonaws.com:3306/juryu?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
username: ${datasource.username}
password: ${datasource.password}
jpa:
hibernate:
ddl-auto: validate

eureka:
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 30
client:
registry-fetch-interval-seconds: 30
disable-delta: true
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://localhost:8761/eureka/
5 changes: 5 additions & 0 deletions src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.url=jdbc:h2:mem:sunjooAuth;MODE=mysql;
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=create
spring.jpa.properties.hibernate.format_sql=true

0 comments on commit 3c7fc54

Please sign in to comment.