Skip to content
Snippets Groups Projects
Commit b6616da4 authored by OZGCloud's avatar OZGCloud
Browse files

add demo application

parent 84baf398
Branches
Tags
No related merge requests found
......@@ -2,9 +2,11 @@ package de.ozgcloud.apilib.vorgang;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;
@Builder
@Getter
@ToString
public class OzgCloudVorgangStub {
private OzgCloudVorgangId id;
......
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.ozgcloud.api-lib</groupId>
<artifactId>api-lib-parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>api-lib-demo</artifactId>
<dependencies>
<dependency>
<groupId>de.ozgcloud.api-lib</groupId>
<artifactId>ozg-cloud-spring-boot-starter</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package de.ozgcloud.apilib.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
package de.ozgcloud.apilib.demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
import de.ozgcloud.apilib.vorgang.OzgCloudVorgangService;
@Component
class DemoRunner implements ApplicationListener<ContextRefreshedEvent> {
@Autowired
private OzgCloudVorgangService vorgangService;
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
System.out.println(vorgangService.search("test"));
}
}
......@@ -20,6 +20,7 @@
<modules>
<module>api-lib-core</module>
<module>ozg-cloud-spring-boot-starter</module>
<module>api-lib-demo</module>
</modules>
<properties>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment