简单的说就是template下边放页面。static下边放静态文件。
application.yml, application.properties下放配置参数。如
server.port=7900
#spring.session.store-type=none
## DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url=jdbc:h2:file:~/Desktop/ssdb;DB_CLOSE_ON_EXIT=TRUE;FILE_LOCK=NO
#;AUTO_SERVER=TRUE
#;DB_CLOSE_ON_EXIT=TRUE;FILE_LOCK=NO
spring.datasource.username=sa
spring.datasource.password=
spring.datasource.driver-class-name=org.h2.Driver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.database=H2
spring.jpa.show-sql=true
spring.h2.console.enabled=true
spring.datasource.connection-timeout=5000
#open shutdown
endpoints.shutdown.enabled=true
spring.resources.static-locations=classpath:/resources/,classpath:/static/,classpath:/template/,classpath:/META-INF/resources