Maven and Gradle samples for dataflow server
- Minimal and fully working sample of building custom dataflow server adding mysql driver.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user