NutzCN Logo
问答 加了nutz-integration-spring,maven install错误
发布于 2499天前 作者 wade 1561 次浏览 复制 上一个帖子 下一个帖子
标签:

[INFO] Scanning for projects...
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Building mvndemo Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-spring/1.r.61.r2-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: https://jfrog.nutz.cn/artifactory/jcenter/org/nutz/nutz-integration-spring/1.r.61.r2-SNAPSHOT/nutz-integration-spring-1.r.61.r2-SNAPSHOT.pom
[INFO] Downloading: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz-integration-spring/1.r.61.r2-SNAPSHOT/nutz-integration-spring-1.r.61.r2-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.256s
[INFO] Finished at: Mon Jul 03 20:36:43 CST 2017
[INFO] Final Memory: 10M/184M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mvndemo: Could not resolve dependencies for project com.wade:mvndemo:war:0.0.1-SNAPSHOT: Failed to collect dependencies at org.nutz:nutz-integration-spring:jar:1.r.61.r2-SNAPSHOT: Failed to read artifact descriptor for org.nutz:nutz-integration-spring:jar:1.r.61.r2-SNAPSHOT: Could not transfer artifact org.nutz:nutz-integration-spring:pom:1.r.61.r2-SNAPSHOT from/to nutz (https://jfrog.nutz.cn/artifactory/jcenter): Failed to transfer file: https://jfrog.nutz.cn/artifactory/jcenter/org/nutz/nutz-integration-spring/1.r.61.r2-SNAPSHOT/nutz-integration-spring-1.r.61.r2-SNAPSHOT.pom. Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

15 回复

去掉snapshot

@wendal Unable to process Jar entry [org/nutz/integration/spring/NutzJsonMessageConverter.class] from Jar [jar:file:/E:/workspaceForNew/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mvndemo/WEB-INF/lib/nutz-integration-spring-1.r.61.r2.jar!/] for annotations
java.io.EOFException,启动的时候报这个错是为什么呢

jar包损坏了吧,重新下载

tomcat版本低有bug吧

更新到8.0最新版

@wendal 只要配置了







就可以在service直接用
@Autowired
private Dao dao;
是这样吗

<bean id="nutDao" class="org.nutz.dao.impl.NutDao">
		<property name="dataSource" ref="dataSource" />
		<!-- 如果要使用Trans,移除springDaoRunner -->
		<property name="runner" ref="springDaoRunner" />
  </bean>
	<bean id="springDaoRunner" class="org.nutz.integration.spring.SpringDaoRunner">
	</bean>

回复按钮旁边就是 插入代码。的按钮

跟其他bean没啥两样

成功啦,哈哈哈哈

2017-7-4 11:5:11.4 DEBUG [http-nio-8181-exec-7] INSERT INTO student(class_id,stu_name,stu_age) VALUES(?,?,?) 
    |   1 |  2 |  3 |
    |-----|----|----|
    | 123 | 小明 | 12 |
  For example:> "INSERT INTO student(class_id,stu_name,stu_age) VALUES(123,'小明',12) "
添加回复
请先登陆
回到顶部