Create user-service project and

This commit is contained in:
bum12ark
2022-01-25 20:19:46 +09:00
parent 62a3442d44
commit 09777540af
8 changed files with 506 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package com.justpickup.userservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication
@EnableEurekaClient
public class UserServiceApplication {
public static void main(String[] args) {
SpringApplication.run(UserServiceApplication.class, args);
}
}

View File

@@ -0,0 +1,24 @@
server.port: 0
spring:
application:
name: user-service
datasource:
url: jdbc:postgresql://localhost:5432/userdb
driver-class-name: org.postgresql.Driver
username: postgres
password: admin
jpa:
hibernate:
ddl-auto: create-drop
properties:
hibernate:
format_sql: true
show_sql: true
open-in-view: false
default_batch_fetch_size: 1000
logging.level:
com.justpickup: DEBUG

View File

@@ -0,0 +1,13 @@
package com.justpickup.userservice;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class UserServiceApplicationTests {
@Test
void contextLoads() {
}
}