Task: Init graphql with spring boot
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.cubetiqs.graphql.demo
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||
import org.springframework.boot.runApplication
|
||||
|
||||
@SpringBootApplication
|
||||
class GraphqlDemoApplication
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
runApplication<GraphqlDemoApplication>(*args)
|
||||
}
|
||||
9
src/main/resources/application.yml
Normal file
9
src/main/resources/application.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
server:
|
||||
port: 8081
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:postgresql://192.168.0.202:5432/graphql-demo
|
||||
username: cubetiq
|
||||
password: cubetiq007
|
||||
driver-class-name: org.postgresql.Driver
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.cubetiqs.graphql.demo
|
||||
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.boot.test.context.SpringBootTest
|
||||
|
||||
@SpringBootTest
|
||||
class GraphqlDemoApplicationTests {
|
||||
|
||||
@Test
|
||||
fun contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user