First: the HTML shows all the css and it cannot be recognized:
Second: The project runs just localhost but just give me the following output and does not start port 8080:
2017-03-11 12:07:48.579 INFO 2397 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.0.12.Final}
2017-03-11 12:07:48.581 INFO 2397 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2017-03-11 12:07:48.582 INFO 2397 --- [ main] org.hibernate.cfg.Environment : HHH000021: Bytecode provider name : javassist
2017-03-11 12:07:48.622 INFO 2397 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2017-03-11 12:07:48.748 INFO 2397 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2017-03-11 12:07:49.046 INFO 2397 --- [ main] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000227: Running hbm2ddl schema export
2017-03-11 12:07:49.047 INFO 2397 --- [ main] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000230: Schema export complete
2017-03-11 12:07:49.076 INFO 2397 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2017-03-11 12:07:49.544 INFO 2397 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-03-11 12:07:49.561 INFO 2397 --- [ main] com.brock.BrockApplication : Started BrockApplication in 12.875 seconds (JVM running for 13.425)
2017-03-11 12:07:49.562 INFO 2397 --- [ Thread-3] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@21a947fe: startup date [Sat Mar 11 12:07:47 EST 2017]; root of context hierarchy
2017-03-11 12:07:49.564 INFO 2397 --- [ Thread-3] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
2017-03-11 12:07:49.564 INFO 2397 --- [ Thread-3] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2017-03-11 12:07:49.565 INFO 2397 --- [ Thread-3] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000227: Running hbm2ddl schema export
2017-03-11 12:07:49.565 INFO 2397 --- [ Thread-3] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000230: Schema export complete
Process finished with exit code 0
File structure:
In HomeController I have:
@Controller()
public class HomeController {
@RequestMapping("/")
public String home(){
return "index";
}
}
The JS and CSS file paths look like this:
<link rel="stylesheet" href="css/bootstrap.min.css">
According to the docs I put them in the correct place and it should return index.html.
-----------------Update 1----------------
applications.properities
spring.datasource.initialize=true
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=- 1;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=brock
spring.datasource.password=password
spring.h2.console.enabled=true
