Create user-service project and
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
24
user-service/src/main/resources/application.yml
Normal file
24
user-service/src/main/resources/application.yml
Normal 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
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user