Quantcast
Channel: Java mon amour
Browsing all 1121 articles
Browse latest View live
↧

CRI-O

https://cri-o.io/CRI-O = "Container Runtime Interface""Open Container Initiative""a lightweight alternative to using Docker as the runtime for...

View Article


shell testing

I have never seen in my life a bash shell being covered by automated tests. I have thought of using Java and Mockito and Junit5, but it's not very straightforward to run shells from Java (in 2019.......

View Article


Java SSL server and client

https://www.baeldung.com/java-ssl-handshake-failuresthis article is inspiring but it contains several errors/omissions.The actually working code with detailed keytool commands is here...

View Article

bash comparison and validation of string

trying to understand Bash syntax is really wasted time.... just copy/paste working examplesarray=("pippo pluto topolino")value=pluto[[ " ${array[@]} " =~ " ${value} " ]] && echo "YES" || echo...

View Article

fstab and UUID for device identification, docker and friends

https://help.ubuntu.com/community/Fstabon my VirtualBox Centos7:cat /etc/fstab /dev/mapper/cl-root / xfs defaults 0 0UUID=70139d85-209e-4997-9d06-af6659221021 /boot xfs defaults 0 0/dev/mapper/cl-swap...

View Article


Spring bean lifecycles and BeanPostProcessor

import org.springframework.beans.factory.DisposableBean;import org.springframework.beans.factory.InitializingBean;import org.springframework.stereotype.Component;import...

View Article

Spring certification

https://d1fto35gcfffzn.cloudfront.net/academy/Spring-Professional-Certification-Study-Guide.pdfbuy exam here https://academy.pivotal.io/confirm-course?courseid=EDU-1120-APPUdemy courses...

View Article

maven common plugins

https://www.baeldung.com/executable-jar-with-mavenmaven-dependency-pluginmaven-jar-pluginmaven-assembly-pluginmaven-shade-plugincom.jolira.onejar-maven-pluginspring-boot-maven-plugintomcat7-maven-plugi...

View Article


Spring Boot 2 HTTPS

see also https://www.baeldung.com/spring-boot-https-self-signed-certificatehttps://better-coding.com/enabling-https-in-spring-boot-application/generate the self-signed certificate:keytool -genkeypair...

View Article


maven-install-plugin copies files to your local .m2 repo

http://maven.apache.org/plugins/maven-install-plugin/usage.htmlyou can run this command from anywhere, no need for a pom.xml:$ mvn install:install-file...

View Article

Helidon MicroProfiles

https://helidon.io/docs/latest/#/microprofile/01_introductionQuickstart Helidon SE https://helidon.io/docs/latest/#/guides/02_quickstart-seQuickstart Helidon MP...

View Article

kubectl generators and restart option

https://kubernetes.io/docs/reference/kubectl/conventions/#generatorsthe only non-deprecated generatori is "run-pod/v1" :kubectl run nginx --image=nginx --generator=run-pod/v1 --dry-run -o...

View Article

Java JSSE SSL flags

-Djavax.net.debug=helpall turn on all debuggingssl turn on ssl debuggingThe following can be used with ssl:record enable per-record tracinghandshake print each handshake messagekeygen print key...

View Article


dockerfile cmd and entrypoint

very confusing, poor design IMHODockerfile:FROM ubuntuENV myname "pierre"ENTRYPOINT ["/bin/bash", "-c", "echo hello ${myname}"]docker built -t hello01 .docker run hello01FROM ubuntuENTRYPOINT...

View Article

Image may be NSFW.
Clik here to view.

Book: Spring Microservices in Action

This is a brilliantly written book.https://github.com/luksa/kubernetes-in-action the codeMicroservice Architecture@SpringBootApplication@RestController@RequestMapping@PathVariableFlexible, Resilient,...

View Article


Image may be NSFW.
Clik here to view.

book: kubernetes in action

x

View Article

Image may be NSFW.
Clik here to view.

book: spring in action 5th edition

https://www.manning.com/books/spring-in-action-fifth-editionhttps://github.com/habuma/spring-in-action-5-samples

View Article


No suitable client certificate could be found - continuing without client...

"No suitable client certificate could be found - continuing without client authentication"* are you specifying the password for the keystore?* are you providing a full certificate chain ? ( chain [0] ,...

View Article

Serialization Filtering in Java10

in WebLogic:Caused by: java.io.InvalidClassException: filter status: REJECTED at java.io.ObjectInputStream.filterCheck(ObjectInputStream.java:1258) at...

View Article

Linux. find broadcast address of a given network interface

It's grotesque how in 2019 we still have to rely on primitive, ambiguous tools like grep and awk to extract information from a linux commandThis is what I could came up to "find broadcast address of a...

View Article
Browsing all 1121 articles
Browse latest View live