JAVA: mudanças entre as edições

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
 
(65 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
=Study=
*https://hyperskill.org
*https://www.codewars.com/
*https://www.baeldung.com/
=Maven=
=Maven=
*[https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Introduction to the Build Lifecycle]
*[https://maven.apache.org/guides/introduction/introduction-to-archetypes.html introduction-to-archetypes]
*[https://maven.apache.org/guides/introduction/introduction-to-archetypes.html introduction-to-archetypes]
<pre>
<pre>
mvn archetype:generate -DartifactId=teste -DgroupId=br.com.clusterlab -DinteractiveMode=false -DarchetypeArtifactId=maven-archetype-quickstart
mvn archetype:generate -DartifactId=teste -DgroupId=br.com.clusterlab -DinteractiveMode=false -DarchetypeArtifactId=maven-archetype-quickstart
</pre>
</pre>
=Arguments=
Do not validade SSL
<pre>
mvn  -Dmaven.wagon.http.ssl.insecure=true package
</pre>
Maven SSL Insecure
<pre>
-Dmaven.wagon.http.ssl.insecure=true
</pre>
Spring Run
<pre>
mvn spring-boot:run
</pre>
Dependency Tree
<pre>
mvn dependency:tree
</pre>
 
=[https://github.com/GoogleContainerTools/jib JIB]=
Compite tto tar
<pre>
compile jib:buildTar
compile jib:build -Dmaven.wagon.http.ssl.insecure=true package
</pre>
<syntaxhighlight lang=xml>
<build>
<plugins>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<allowInsecureRegistries>false</allowInsecureRegistries>
<from>
<image>mcr.microsoft.com/java/jdk:8-zulu-alpine</image>
</from>
<to>
<image>registryurl.com/spring-jib</image>
<tags>
<tag>0.4</tag>
</tags>
<auth>
<username>${env.REGISTRY_USERNAME}</username>
<password>${env.REGISTRY_PASSWORD}</password>
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</syntaxhighlight >
 
=IDES=
*[https://www.jetbrains.com/help/idea/meet-intellij-idea.html IntelliJ HELP]
=[[Spring|Spring]]=
 
=JRE=
==JAVAWS==
===Disable security===
<pre>
C:\Program Files (x86)\Java\jre1.8.0_91\lib\security\java.security:
</pre>
Remove MD5:
<pre>
jdk.certpath.disabledAlgorithms
</pre>
Remove SSLv3, RC4, and MD5withRSA:
<pre>
jdk.tls.disabledAlgorithms
</pre>
==Arguments==
*JMXRemote
*JMXRemote
<pre>
<pre>
Linha 13: Linha 96:
java -jar target/HelloWorld-0.1.0.jar --server.port=8091
java -jar target/HelloWorld-0.1.0.jar --server.port=8091
</pre>
</pre>
=IDES=
=GIT/Projects=
*[https://www.jetbrains.com/help/idea/meet-intellij-idea.html IntelliJ HELP]
*[https://github.com/eternnoir/graphvizapi GRAPHVIZ]
=Spring=
*[https://github.com/GoogleContainerTools/jib JIB]
==Data Flow==
*[https://github.com/Azure/azure-sdk-for-java azure-sdk-for-java]
*[https://cloud.spring.io/spring-cloud-dataflow/ Spring Cloud Data Flow]
=Links=
*[https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/ Spring Cloud Data Flow Reference Guide]
*[https://www.baeldung.com/jackson-object-mapper-tutorial Intro to the Jackson ObjectMapper]
Deploy on Kubernetes
*[https://jsonplaceholder.typicode.com/ JSONPlaceholder]
*[https://github.com/helm/charts/tree/master/stable/spring-cloud-data-flow Spring Cloud Data Flow Chart]
*[http://www.jsonschema2pojo.org/ jsonschema2pojo]
*[https://www.convertcsv.com/csv-to-json.htm CSV to json]
*[https://www.jooq.org/ JOOQ Object Oriented Querying]

Edição atual tal como às 13h01min de 8 de maio de 2024

Study

Maven

mvn archetype:generate -DartifactId=teste -DgroupId=br.com.clusterlab -DinteractiveMode=false -DarchetypeArtifactId=maven-archetype-quickstart

Do not validade SSL

mvn  -Dmaven.wagon.http.ssl.insecure=true package

Maven SSL Insecure

-Dmaven.wagon.http.ssl.insecure=true 

Spring Run

mvn spring-boot:run

Dependency Tree

mvn dependency:tree

JIB

Compite tto tar

compile jib:buildTar
compile jib:build -Dmaven.wagon.http.ssl.insecure=true package
<build>
		<plugins>
			<plugin>
				<groupId>com.google.cloud.tools</groupId>
				<artifactId>jib-maven-plugin</artifactId>
				<version>1.0.0</version>
				<configuration>
					<allowInsecureRegistries>false</allowInsecureRegistries>
					<from>
						<image>mcr.microsoft.com/java/jdk:8-zulu-alpine</image>
					</from>
					<to>
						<image>registryurl.com/spring-jib</image>
						<tags>
							<tag>0.4</tag>
						</tags>
						<auth>
							<username>${env.REGISTRY_USERNAME}</username>
							<password>${env.REGISTRY_PASSWORD}</password>
						</auth>
					</to>
				</configuration>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>build</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

IDES

Spring

JRE

JAVAWS

Disable security

C:\Program Files (x86)\Java\jre1.8.0_91\lib\security\java.security:

Remove MD5:

jdk.certpath.disabledAlgorithms

Remove SSLv3, RC4, and MD5withRSA:

jdk.tls.disabledAlgorithms

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

GIT/Projects

Links