Skip to content

jenkinsperu/javaee8-mvc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVC 1.0 Example

Pre requisites:

  • Java 8

  • Glassfish 4.1.1 [Download]

  • Maven 3.3.3

Build

---
./mvnw package
---

Deploy

Access to Glassfish Panel Control at http://localhost:4848

Build with Docker

Build your own docker image.

---
./mvnw package docker:build
---

Then, execute the command below and application will be running at http://<docker_host>:8080/javaee8-mvc

---
docker run --name mvc-example -p 8080:8080 adoptajsr/javaee8-mvc
---

Content

  • Models, Views and Controllers

  • Exception Handling

  • CSRF

  • Redirect and RedirectScoped

  • MVC Context

Using Jenkins

  1. Fork this repo

  2. Download this repo and follow the steps

  3. Create a new Pipeline Job

  4. Choose 'Pipeline script from SCM'

  5. Enter https://github.com/jenkinsperu/javaee8-mvc.git

  6. Modify eddumelendez in Jenkinsfile by your docker hub's username

  7. Create 'edsonchavez' user in Jenkins

Releases

No releases published

Packages

No packages published

Languages

  • Java 37.6%
  • Shell 36.5%
  • Batchfile 25.9%