JAVA: mudanças entre as edições
Ir para navegação
Ir para pesquisar
(→Spring) |
|||
Linha 16: | Linha 16: | ||
*[https://www.jetbrains.com/help/idea/meet-intellij-idea.html IntelliJ HELP] | *[https://www.jetbrains.com/help/idea/meet-intellij-idea.html IntelliJ HELP] | ||
=Spring= | =Spring= | ||
==BOOT== | |||
*[https://docs.spring.io/spring-boot/docs/2.1.3.RELEASE/reference/htmlsingle/ Spring Boot Documentation] | |||
==Data Flow== | ==Data Flow== | ||
*[https://cloud.spring.io/spring-cloud-dataflow/ Spring Cloud Data Flow] | *[https://cloud.spring.io/spring-cloud-dataflow/ Spring Cloud Data Flow] |
Edição das 18h14min de 1 de abril de 2019
Maven
mvn archetype:generate -DartifactId=teste -DgroupId=br.com.clusterlab -DinteractiveMode=false -DarchetypeArtifactId=maven-archetype-quickstart
Arguments
- JMXRemote
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18001 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
- Change server port
java -jar target/HelloWorld-0.1.0.jar --server.port=8091
IDES
Spring
BOOT
Data Flow
- Spring Cloud Data Flow
- Spring Cloud Data Flow Reference Guide
- Orchestrating Data Microservices with Spring Cloud Data Flow
Docker
Deploy on Kubernetes
apiVersion: v1
kind: Service
metadata:
name: internal-app
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: internal-app
SHELL
dataflow:>app import --uri http://bit.ly/Einstein.GA-stream-applications-kafka-10-maven dataflow:>stream create --name mysqlstream --definition "http --server.port=8787 | jdbc --tableName=names --columns=name --spring.datasource.driver-class-name=org.mariadb.jdbc.Driver --spring.datasource.url='jdbc:mysql://localhost:3306/test'" --deploy dataflow:>stream list