1. 它是一款轻量级 Java Web 框架,基于MVC架构 - 内置 IOC、AOP、ORM、DAO、MVC 等特性 - 基于 Servlet 3.0 规范 - 使用 Java 注解取代 XML 配置 - 支持jsp,velocity等视图 - 面向基于 Web 的中小规模的应用程序 - 新手能在较短时间内入门 - 核心具有良好的定制性且插件易于扩展 在 `resources` 目录下,创建一个名为 `jfast.properties` 的文件,内容如下: jfast.basePackage=com.jfast jfast.viewType=jsp jfast.baseViewPath=/WEB-INF/jsp/ 数据源配置 jfast.dataSource.url=jdbc:mysql://localhost:3306/jfast?characterEncoding=utf8 jfast.dataSource.username=root jfast.dataSource.password=123456 @RequestManpping("/")public class HelloController{ @Inject private JfastService jfastService; public void login(){ jfastService.helloService(); } @RequestManpping("/exit") public void exit(){ jfastService.helloService(); }} public interface JfastService { public void helloService(); } @bean public class JfastServiceImpl implements JfastService{ public void helloService(){ System.out.println("helloService") }} Jfast 1.0 测试版本发布,轻量级 Java Web 框架下载地址