Created
February 9, 2016 20:00
-
-
Save aglassman/b9108f722d21098dd051 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import org.h2.server.web.WebServlet; | |
import org.springframework.boot.context.embedded.ServletRegistrationBean; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration | |
public class ServiceConfiguration { | |
@Bean | |
ServletRegistrationBean h2servletRegistration(){ | |
ServletRegistrationBean registrationBean = new ServletRegistrationBean( new WebServlet()); | |
registrationBean.addUrlMappings("/console/*"); | |
return registrationBean; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
spring.datasource.url=jdbc:h2:file:/Users/aglassman/workspace/question-ninja/work/h2QuestionDb
spring.datasource.username=h2user
spring.datasource.password=h2user
spring.datasource.driver-class-name=org.h2.Driver
spring.jpa.hibernate.ddl-auto=update