Skip to content
Snippets Groups Projects
Select Git revision
  • develop default protected
  • dependabot/maven/jee/dao/com.h2database-h2-2.1.210
  • feature/myfeature
  • feature/XXF1
  • feature/sonar
  • feature/tests
  • feature/tls
  • feature/ear
  • feature/jsf
  • feature/minor-updates
  • master
11 results

sample-jee9-1

  • Clone with SSH
  • Clone with HTTPS
  • Project fr.univtln.bruno.samples/jee9.1

    Steps to run this project

    1. COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up --build -d
    2. Visit
      1. curl http://localhost:8080/restApp/sample
      2. curl http://localhost:8080/restApp/sample/hello
      3. curl http://localhost:8080/restApp/sample/main
      4. curl http://localhost:8080/restApp/sample/persons
      5. curl -H "Content-Type: application/json"
        -X POST
        -d '{"Person":{"name":"Jeanne"}}'
        http://localhost:8080/restApp/sample/persons
      6. curl http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample/persons/843c8236-6c6b-450e-9aa3-211a9b897403
      7. curl -H "Accept: text/xml" http://localhost:8080/restApp-1.0-SNAPSHOT/resources/sample/persons

    Import "real" certificate

    openssl s_client -showcerts -servername localhost -connect localhost:8181 </dev/null | openssl x509 -outform DER > localhost.der keytool -import -noprompt -trustcacerts -storepass storepass -alias localhost -keystore mycert-pub.jks -file localhost.der