Skip to content

Commit c6a381d

Browse files
committed
update: 更新发行注记,rewrite提交记录,准备发新版本了
1 parent 88c10ea commit c6a381d

3 files changed

Lines changed: 59 additions & 5 deletions

File tree

doc/manual/changelog.man

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#title: 变更历史
22
#index:0,1
33
#author:wendal(wendal1985@gmail.com)
4+
--------------------------------------------------------------------------------------------------------
5+
1.r.62
6+
7+
* 主要修改: @IocBean实例工厂方法,扩展dao的map插入
8+
* 日期: 20170718
9+
410
--------------------------------------------------------------------------------------------------------
511
1.r.61.r2
612

doc/manual/nutz_preface.man

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Nutz 可以做什么?
5151
支持的环境
5252
* JDK5+, 推荐JDK8
5353
* 任意SQL数据库,例如MySQL,Oracle,SqlServer等等
54-
* 任意支持servlet 2.5的web容器, 推荐Tomcat 8+/Jetty 9.2+
54+
* 任意支持servlet 2.5的web容器, 推荐Tomcat 8.5+/Jetty 9.2+
5555

5656
--------------------------------------------------------------------------------------------------------
5757
Nutz 为谁而设计?

doc/manual/nutz_release_notes.man

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,73 @@
22
#index:0,1
33
#author:wendal(wendal1985@gmail.com)
44
--------------------------------------------------------------------------------------------------------
5-
1.r.62 {*待定} 发行注记(暂定20170713)
5+
1.r.62 {*待定} 发行注记(暂定20170718)
66

77
更新不?
88

99
---------------------------------------------------------------------------------------------------------
1010
主要变化:
1111

12-
TODO
12+
* add: [https://github.com/nutzam/nutz/issues/1280 支持把@IocBean标注在方法上,作为工厂方法] by wendal
13+
* add: [https://github.com/nutzam/nutz/issues/1267 MVC的Param中增加对自定义时间格式的解析] by [https://github.com/elkan1788 elkan1788]
14+
* add: [https://github.com/nutzam/nutz/issues/1149 Daos.migration要支持Oracle和SqlServer的索引新增 ] by [https://github.com/hzl7652 hzl7652] , [https://github.com/tanqimin tanqimin],wendal
15+
* add: [https://github.com/nutzam/nutz/pull/1256 dao支持nst] by [https://github.com/l4dfire l4dfire]
16+
* add: [https://github.com/nutzam/nutz/issues/1268 Images支持图片水平、垂直翻转] by pangwu86
17+
* add: [https://github.com/nutzam/nutz/issues/1262 Images工具类加上水印] by pangwu86
18+
* fix: [https://github.com/nutzam/nutz/issues/1250 PropertiesProxy.print方法不work] by wendal
19+
* fix: [https://github.com/nutzam/nutz/issues/1261 json转换08会报错] by [https://github.com/qinerg qinerg]
20+
* fix: [https://github.com/nutzam/nutz/issues/1261 ChainPasing解析] by [https://github.com/qinerg qinerg]
21+
* fix: [https://github.com/nutzam/nutz/issues/1271 使用Http工具类获取网页时出错] by [https://github.com/qinerg qinerg]
22+
* fix: [https://github.com/nutzam/nutz/issues/1276 通过map进行插入操作时,设置主键和自增应该顺序无关] by wendal
23+
* fix: [https://github.com/nutzam/nutz/issues/1277 MVC @Param 对象属性默认值df无效] by [https://github.com/SkyMonkya SkyMonkya]
24+
* fix: [https://github.com/nutzam/nutz/issues/1283 HttpTest.test_weibo_post is flaky] by [https://github.com/flakycov flakycov]
25+
* change: [https://github.com/nutzam/nutz/pull/1249 重写H2下获得表索引方法] by [https://github.com/jiyuefeng jiyuefeng]
26+
* change: [https://github.com/nutzam/nutz/issues/1282 Dao初始化时引用的FilePool改为懒汉式] by [https://github.com/qinerg qinerg]
1327

1428

1529
--------------------------------------------------------------------------------------------------------
1630
部分新功能介绍
1731

18-
TODO
32+
新增@IocBean实例工厂方法, 可以代替ioc js, 集成第三方类的时候更方便了, 详情查阅文档 [ioc/ioc_factory.man 工厂方法]
33+
34+
{{{
35+
@IocBean // 首先,它自己必须加@IocBean, 可以使用@IocBean/@Inject的全部功能.
36+
public class MyBeanFactory {
37+
38+
@IocBean
39+
public PropertiesProxy getConf() {
40+
if ("product".equals(System.getProperty("nutz.runmode"))) {
41+
return new PropertiesProxy("/etc/nutz/custom");
42+
} else {
43+
return new PropertiesProxy("custom/");
44+
}
45+
}
46+
47+
// 生成一个名为dataSource的bean. 命名规则是: IocBean(name=XXX) > 方法名去掉get/build后首字母小写.
48+
@IocBean
49+
public SimpleDataSource getDataSource(@Inject("refer:conf")PropertiesProxy conf) {
50+
SimpleDataSource ds = new SimpleDataSource();
51+
ds.setJdbcUrl(conf.get("db.url", "jdbc:h2:mem:nutztest"));
52+
return ds;
53+
}
54+
55+
@IocBean
56+
public Dao buildDao(DataSource dataSource) { // 带参数, 默认是按类型注入
57+
return new NutDao(dataSource);
58+
}
59+
}}}
1960

2061
--------------------------------------------------------------------------------------------------------
2162
文档更新
2263

23-
TODO
64+
基于Wikipedia的要求, nutz的文档已全部应用 [http://zh.wikipedia.org/wiki/Wikipedia:CC-BY-SA-3.0协议文本 知识共享 署名-相同方式共享 3.0协议] 及
65+
[http://zh.wikipedia.org/wiki/Wikipedia:GNU自由文档许可证文本 GNU自由文档许可证], 上述协议并不影响大家的使用,请放心.
66+
67+
* add: [http://nutzam.com/core/img/overview.html Images图片水平/垂直翻转/添加水印]的文档 by pangwu86
68+
* add: [http://nutzam.com/core/basic/version_upgrade.html 版本升级]的章节
69+
* add: [http://nutzam.com/core/ioc/ioc_factory.html Ioc工厂方法]独立为一个章节,并添加@IocBean实例工厂方法的说明
70+
* add: [http://nutzam.com/core/weixin/weixin_api.html 微信API]
71+
* add: [http://nutzam.com/core/weixin/weixin_login.html 微信登录]
2472

2573
--------------------------------------------------------------------------------------------------------
2674
详细列表:

0 commit comments

Comments
 (0)