Wednesday, November 29, 2017

JSF SpringMVC Hibernate Integration Example Tutoria with maven

According to spring MVC structure, we can create three layers in our project
  1. DAO Layer
  2. Service Layer
  3. Model Layer

This is Project structure

Firstly configure all XML file. It will help to continue your project without errors.

faces-config.xml

</plugins> </build> </project>


Step 03 - Create Controller class(SpringBootController.java)


package com.boraji.tutorial.springboot.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class SpringBootController{ @RequestMapping("/") public String sayHello() { return "Hello Spring Boot!!"; } }



No comments:

Post a Comment