Add customer api module for demo
This commit is contained in:
parent
eedeb3abfa
commit
2a83907be1
@ -17,3 +17,11 @@ dependencies {
|
|||||||
tasks.withType<Test> {
|
tasks.withType<Test> {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<Jar> {
|
||||||
|
enabled = true
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootJar> {
|
||||||
|
enabled = false
|
||||||
|
}
|
@ -7,6 +7,7 @@ plugins {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":lib"))
|
api(project(":lib"))
|
||||||
|
api(project(":customer-api"))
|
||||||
|
|
||||||
implementation("org.springframework.boot:spring-boot-starter-web")
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
||||||
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
||||||
|
@ -2,12 +2,15 @@ package com.example.demo
|
|||||||
|
|
||||||
import com.example.lib.MyLib
|
import com.example.lib.MyLib
|
||||||
import com.example.lib.MyUtils
|
import com.example.lib.MyUtils
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.boot.CommandLineRunner
|
import org.springframework.boot.CommandLineRunner
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||||
import org.springframework.boot.runApplication
|
import org.springframework.boot.runApplication
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication (scanBasePackages = ["com.example.customerapi"])
|
||||||
class DemoApplication : CommandLineRunner {
|
class DemoApplication @Autowired constructor(
|
||||||
|
//customerRepository: CustomerRepository,
|
||||||
|
) : CommandLineRunner {
|
||||||
override fun run(vararg args: String?) {
|
override fun run(vararg args: String?) {
|
||||||
MyLib.doOnMe()
|
MyLib.doOnMe()
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
|
spring.data.mongodb.uri=mongodb://192.168.0.202:27017/db-customer-api
|
Loading…
Reference in New Issue
Block a user