0. TASK
- dropwizard helloworld;👌
- 了解完那些安装的东西;👌
- task 继续;👌
- github private project;👌
- 看看dropbox文档;👌
- idea快捷键;
- 培训整理;
- maven资料;
1. dropwizard
- create config.class
- create a config file: config.yml (放在项目根目录下)
- create application.class extends Application<config>
- create a resource class
@Path("/hello-world")
@Produces(MediaType.APPLICATION_JSON)
public class HelloWorldResource
- register resources in application.class
final HelloWorldResource resource = new HelloWorldResource(configuration.getTemplate(), configuration.getDefaultName() );
environment.jersey().register(resource);