mvn archetype:generate -DarchetypeGroupId=com.airhacks -DarchetypeArtifactId=jakartaee-essentials-archetype -DarchetypeVersion=0.0.3 -Darchetype.interactive=false --batch-mode -Dversion=1.0-SNAPSHOT -DgroupId=jeestudy -DartifactId=jeefirst
mvn clean package && docker build -t jeestudy/jeefirst .
docker rm -f jeefirst || true && docker run -d -p 8080:8080 -p 4848:4848 --name jeefirst jeestudy/jeefirst
docker ps
で コンテナIDを確認し、
docker logs コンテナID
で直近のログを見ることが可能
http://localhost:8080/api/ping
curl -X POST -H "Content-Type: application/json" -d '{"firstNumber":"111","secondNumber":"222"}' localhost:8080/jeefirst/api/calc
sdk use java 11.0.5-amzn
mvn clean package payara-micro:start
JakartaEE9に対応しているのはPayara6を利用している。
http://localhost:8080/greeting.xhtml
http://localhost:8080/greeting2.xhtml
参考 https://ja.getdocs.org/jsf2-jsf-2-datatable-example