Add custom sample for dataflow 25x

This commit is contained in:
Janne Valkealahti
2020-05-23 07:45:23 +01:00
parent dc20f90f03
commit 8202767bc4
20 changed files with 1073 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package com.example.customdataflowserver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.boot.autoconfigure.session.SessionAutoConfiguration;
import org.springframework.cloud.dataflow.server.EnableDataFlowServer;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryDeployerAutoConfiguration;
import org.springframework.cloud.deployer.spi.kubernetes.KubernetesAutoConfiguration;
import org.springframework.cloud.deployer.spi.local.LocalDeployerAutoConfiguration;
@SpringBootApplication(exclude = {
SessionAutoConfiguration.class,
ManagementWebSecurityAutoConfiguration.class,
SecurityAutoConfiguration.class,
UserDetailsServiceAutoConfiguration.class,
LocalDeployerAutoConfiguration.class,
CloudFoundryDeployerAutoConfiguration.class,
KubernetesAutoConfiguration.class
})
@EnableDataFlowServer
public class CustomDataflowServerApplication {
public static void main(String[] args) {
SpringApplication.run(CustomDataflowServerApplication.class, args);
}
}

View File

@@ -0,0 +1,19 @@
package com.example.customdataflowserver;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase.Replace;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
@AutoConfigureTestDatabase(replace = Replace.ANY)
public class CustomDataflowServerApplicationTests {
@Test
public void contextLoads() {
}
}