According to spring MVC structure, we can create three layers in our project
</plugins>
</build>
</project>
Step 03 - Create Controller class(SpringBootController.java)
- DAO Layer
- Service Layer
- Model Layer
This is Project structure
Firstly configure all XML file. It will help to continue your project without errors.
faces-config.xml
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!!";
}
}