一个历史项目,捡起来维护,有了重构的想法。ssh本身也不是很精通。是继续ssh好的,还是转nutz好呢。
问答
把一个中小型struts2 spring Hibernate项目转成nutz,主要的困难会在哪部分呢?
标签:
无
11 回复
数据层吧
来自美丽的 NutzCN
D:\>java -jar nutzwk-code-generator-1.3-jar-with-dependencies.jar -loader table
错误: 找不到或无法加载主类 org.nutz.zdoc.ZDoc
这样也不行
D:>java -jar nutzwk-code-generator-1.3-jar-with-dependencies.jar cn.enilu.common.code.Generator -loader table
错误: 找不到或无法加载主类 org.nutz.zdoc.ZDoc
java -cp nutzwk-code-generator-1.3-jar-with-dependencies.jar cn.enilu.common.code.Generator -loader table
2017-7-22 0:27:4.318 DEBUG [main] Found 0 resource by src( /code/code.json ) , r
egex( ^(.+[.])(js|json)$ )
2017-7-22 0:27:4.382 DEBUG [main] Using 95 castor for Castors
Exception in thread "main" java.lang.RuntimeException: folder or file like '^(.+
[.])(js|json)$' no found in /code/code.json
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17
)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:990)
at org.nutz.lang.Lang.makeThrow(Lang.java:149)
at org.nutz.resource.Scans.loadResource(Scans.java:116)
at org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:45)
at cn.enilu.common.code.Generator.main(Generator.java:168)
https://github.com/enilu/nutzwk-code-generator/releases
加了-c 绝对路径code.json
好了
添加回复
请先登陆