`
comicme_yanghe
  • 浏览: 8279 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
文章列表
简介     Nano Framework基于Google Guice框架进行开发,使用Guice的IoC和AOP特性可以快速的定义和开发组件及服务。设计初衷是减少代码量,让开发人员专注于业务层代码的开发。     目前项目刚起步,如果有兴趣的可以贡献代码,源码地址 环境要求     Nano Framework基于JDK8进行开发,内部使用了JDK8的新特性,使用时必须使用JDK8进行开发和编译 安装 git clone git@github.com:nano-projects/nano-framework.git cd nano-framework mvn clean insta ...
1、编写AOP 1.1、AOP注解 @Before @After @BeforeAndAfter 1.2、在src/main/java/org.nanoframework.examples.first.webapp.aop下添加 public class ExamplesAOP { private Logger LOG = LoggerFactory.getLogger(ExamplesAOP.class); public void before(MethodInvocation invocation) { if(LOG.isDebugEnab ...
1、添加依赖 1.1、修改pom.xml <dependency> <groupId>org.nanoframework</groupId> <artifactId>nano-orm-mybatis</artifactId> <version>1.2.0-RC1</version> </dependency> 1.2、在src/main/resources下添加MyBatis数据源 examples-mybatis.properties mybatis.en ...
本文基于前几篇文章为基础进行编写,需要了解前篇内容的浏览我的博客中的其他文章 今天的主题是使用Nano Framework开发多数据源及多数据源事务处理的示例 1、修改配置并添加新的数据源配置 1.1、修改context.properties # 将属性mapper.package.jdbc=/examples-jdbc.properties修改为如下配置 mapper.package.root=examples,examples2 mapper.package.jdbc.examples=/examples-jdbc.properties mapper.package.jdbc.e ...
    本文基于前几篇为基础进行编写,如有需要请参考前几篇文章内容。     下面我们进入今天的主题。 1、添加H2数据库依赖 1.1、修改pom.xml <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.4.189</version> </dependency> <dependency> <groupId> ...
本文基于前一篇文章为基础进行改进,需要了解前篇内容的请访问这里 1、pom.xml中添加nano-server依赖 1.1、依赖 <dependency> <groupId>org.nanoframework</groupId> <artifactId>nano-server</artifactId> <version>1.2.0-RC1</version> <exclusions> <exclusion> ...
1、创建Maven Webapp 2、pom.xml中添加依赖(使用前先安装,见前一篇文章,目前未发布至公共仓库) <dependency> <groupId>org.nanoframework</groupId> <artifactId>nano-webmvc</artifactId> <version>1.2.0-RC1</version> </dependency> 3、web.xml中添加DispatcherServlet和HttpRequestFilter &l ...
Global site tag (gtag.js) - Google Analytics