NutzCN Logo
问答 Nutz的IDEA插件使用问题
发布于 2366天前 作者 qq_1ff5a8c5 1501 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
Connected to the target VM, address: '127.0.0.1:51189', transport: 'socket'
[DEBUG] 16:59:15.945 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=80 time use 218ms
[DEBUG] 16:59:15.963 org.nutz.resource.Scans.scan(Scans.java:280) - Found 0 resource by src( /code/code.json ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 16:59:16.057 org.nutz.castor.Castors.reload(Castors.java:115) - 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 org.nutz.lang.Lang.makeThrow(Lang.java:152)
	at org.nutz.resource.Scans.loadResource(Scans.java:112)
	at org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:45)
	at cn.enilu.common.code.Generator.main(Generator.java:152)
Disconnected from the target VM, address: '127.0.0.1:51189', transport: 'socket'

初学者使用的是Github上面的NutzWk项目,
已经在IDEA插件中下载了代码生成插件,并写了一个model右键在代码中测试,报错..
求指点

5 回复

最新的代码吗?

wk-wiki看完了吗?

刚刚又去看了一下Wiki....
Pojo

@Comment("玩玩")
@Table("funny")
public class funny extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    @Name
    @Prev(els = {@EL("uuid()")})
    private String id;
    @Column
    @Comment("编码")
    @ColDefine(type = ColType.VARCHAR)
    private String code;
    @Column
    @Comment("名称")
    @ColDefine(type = ColType.VARCHAR)
    private String name;

compile 了Wk-web,然后右键还是这个样子..
看了报错日志,感觉貌似是路径找不到?_?...瑟瑟发抖..

应该是没有用IDEA打开项目根目录

添加回复
请先登陆
回到顶部