Created
January 22, 2013 14:31
-
-
Save markehammons/4595051 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.myapp | |
import org.scalatra._ | |
import javax.servlet.ServletContext | |
/** | |
* This is the Scalatra bootstrap file. You can use it to mount servlets or | |
* filters. It's also a good place to put initialization code which needs to | |
* run at application start (e.g. database configurations), and init params. | |
*/ | |
class Scalatra extends LifeCycle { | |
override def init(context: ServletContext) { | |
// Mount one or more servlets | |
context.mount(new MyServlet, "/*") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment