Using Annotations with Jetty Embedded Setting up the Classpath You will need to place the following jetty jars onto the classpath of your application. You can obtain them from the jetty distribution , or the maven repository : You will also need the asm jar, which you can obtain from the Jetty dependencies site . Example Here's an example application that sets up a Jetty server, does some setup to ensure that annotations are scanned and deploys a webapp that uses annotations. This example also uses the @Resource annotation which involves JNDI,
Read full article from Using Annotations with Jetty Embedded
No comments:
Post a Comment