junicorn / java-china

🍡 此项目已废弃,请移步至 https://github.com/junicorn/roo
Apache License 2.0
226 stars 106 forks source link

运行源码发现IndexController里的NodeService似乎没有被注入成功 #47

Open songboriceboy opened 7 years ago

songboriceboy commented 7 years ago

请问作者这是怎么回事?

songboriceboy commented 7 years ago

log4j:WARN No appenders could be found for logger (com.blade.config.Configuration). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

cikai commented 7 years ago

看一下pom.xml里边的98行的resource被注释掉了,读取不到配置文件,去掉即可。

wangbingran163 commented 7 years ago

请问下我用eclipse导入maven项目,创建tomcat服务器,为什么找不到那个web组件呢?

cikai commented 7 years ago

@wangbingran163 blade采用的是集成的Jetty服务器,不再需要使用tomcat部署。Maven安装好依赖后,直接运行Application.java即可。

wangbingran163 commented 7 years ago

@cikai 再问下这个部署路径怎么配置才对呢?我运行起来之后页面资源都加载不到,连接都直接跳到xxxnot found 路径都不对,尴尬 哈哈

cikai commented 7 years ago

@wangbingran163 根据上述,猜测还是resource配置的问题。具体情况可以私下讨论 cikai0923@gmail.com