内容简介:1. 它是一款轻量级 Java Web 框架,基于MVC架构 - 内置 IOC、AOP、ORM、DAO、MVC 等特性 - 基于 Servlet 3.0 规范 - 使用 Java 注解取代 XML 配置 - 支持jsp,velocity等视图 - 面向基于 Web 的中小规模的应用程序 ...
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") }}【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Beginning Google Maps API 3
Gabriel Svennerberg / Apress / 2010-07-27 / $39.99
This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps v3 on web pages in both desktop and mobile ......一起来看看 《Beginning Google Maps API 3》 这本书的介绍吧!