Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SpringBootApplication
- public class EcommerceApplication {
- public static void main(String[] args) {
- SpringApplication.run(EcommerceApplication.class, args);
- }
- }
- @Controller
- @RequestMapping(value = "/")
- public class HomeController {
- @GetMapping
- public String index() {
- return "index";
- }
- }
- server.port=8080
- spring.application.name=Bootstrap Spring Boot
- spring.thymeleaf.cache=false
- spring.thymeleaf.enabled=true
- spring.thymeleaf.prefix=classpath:/templates/
- spring.thymeleaf.suffix=.html
- spring.datasource.driver-class-name=org.h2.Driver
- spring.datasource.url=jdbc:h2:mem:bootapp;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
- spring.datasource.username=testuser
- spring.datasource.password=testpassword
- server.error.path=/error
- server.error.whitelabel.enabled=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement