Skip to content

omix222/jeestudy

Repository files navigation

Generate project from..

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

Build

mvn clean package && docker build -t jeestudy/jeefirst .

RUN

docker rm -f jeefirst || true && docker run -d -p 8080:8080 -p 4848:4848 --name jeefirst jeestudy/jeefirst 

Glassfishのログをみるには

docker ps で コンテナIDを確認し、 docker logs コンテナID で直近のログを見ることが可能

First access URL

http://localhost:8080/api/ping

Calc sample

curl -X POST -H "Content-Type: application/json" -d '{"firstNumber":"111","secondNumber":"222"}' localhost:8080/jeefirst/api/calc

Javaバージョンの切り替え(Java19ではPayaraが動かない)

sdk use java 11.0.5-amzn    

Docker無しでビルド&起動(UberJarとしてPayaraMicroを利用)

mvn clean package payara-micro:start

JakartaEE9に対応しているのはPayara6を利用している。

JSF画面

http://localhost:8080/greeting.xhtml

JSF画面(最小機能画面)

http://localhost:8080/greeting2.xhtml

段組テーブル検討

参考 https://ja.getdocs.org/jsf2-jsf-2-datatable-example

http://localhost:8080/paging.xhtml

参考

http://localhost:8080/modal.xhtml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published