我听到你了 2017-11-16 06:42 采纳率: 100%
浏览 3324
已采纳

打成war包之后 服务器项目访问数据库时链接不上

INFO 2017-11-16 14:38:52,020 org.springframework.context.support.AbstractApplic
ationContext: Refreshing org.springframework.context.support.ClassPathXmlApplica
tionContext@43f2ce33: startup date [Thu Nov 16 14:38:52 CST 2017]; root of conte
xt hierarchy
INFO 2017-11-16 14:38:52,024 org.springframework.beans.factory.xml.XmlBeanDefin
itionReader: Loading XML bean definitions from class path resource [beans.xml]
INFO 2017-11-16 14:38:52,042 org.springframework.context.annotation.ClassPathSc
anningCandidateComponentProvider: JSR-250 'javax.annotation.ManagedBean' found a
nd supported for component scanning
INFO 2017-11-16 14:38:52,122 org.springframework.beans.factory.support.DefaultL
istableBeanFactory: Pre-instantiating singletons in org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory@4bdfc749: defining beans [activeNumberC
ontroller,apkController,userController,agencyController,ideaController,myloansCo
ntroller,orderController,pactContoller,signInController,weController,activityCon
troller,classifyController,homeAll,HUController,labelController,messageControlle
r,productController,ruleController,shoppingController,slideShowController,jobInf
oController,mainInfoController,orderBasicInfoController,permitController,saveOrd
er,converController,issueController,iusseUserController,totalController,userBasi
cController,userParticularController,userTrueController,xiaoXiController,org.spr
ingframework.context.annotation.internalConfigurationAnnotationProcessor,org.spr
ingframework.context.annotation.internalAutowiredAnnotationProcessor,org.springf
ramework.context.annotation.internalRequiredAnnotationProcessor,org.springframew
ork.context.annotation.internalCommonAnnotationProcessor,dataSource,sqlSessionFa
ctory,dao,upd,utd,converdi,issuedi,totaldi,xiaoxidi,issueuserdi,userService,user
ParticularService,userTrueServiceImpl,convertServiceImpl,issueServiceImpl,totalS
erviceImpl,xiaoXiServiceImpl,issueUserServiceImpl,userdao,apkdao,userServiceImpl
,apkServiceImpl,ssdi,pdi,mdi,sdi,ldi,aidi,tgdi,cdi,hudi,ruledao,ndi,slideShowSer
viceImpl,NewsServiceImpl,productServiceImpl,messageServiceImpl,shoppingServiceIm
pl,labelServiceImpl,activityServiceImpl,tongGaoServiceImpl,classifyServiceImpl,h
omeUtilServiceImpl,ruleServiceImpl,adiiu,idi,wdi,odi,signidi,pactdi,myldi,agency
ServiceImpl,ideaServiceImpl,weServiceImpl,signInServiceImpl,pactServiceImpl,mylo
ansServiceImpl,midi,jidi,obidi,permitdi,mainInfoServiceImpl,jobInfoServiceImpl,o
rderBasicInfoServiceImpl,permitServiceImpl,org.springframework.context.annotatio
n.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of facto
ry hierarchy
INFO 2017-11-16 14:38:52,155 org.springframework.jdbc.datasource.DriverManagerD
ataSource: Loaded JDBC driver: com.mysql.jdbc.Driver
INFO 2017-11-16 14:38:52,454 org.springframework.context.support.AbstractApplic
ationContext: Refreshing org.springframework.context.support.ClassPathXmlApplica
tionContext@d56b5fd: startup date [Thu Nov 16 14:38:52 CST 2017]; root of contex
t hierarchy
INFO 2017-11-16 14:38:52,460 org.springframework.beans.factory.xml.XmlBeanDefin
itionReader: Loading XML bean definitions from class path resource [beans.xml]
INFO 2017-11-16 14:38:52,489 org.springframework.context.annotation.ClassPathSc
anningCandidateComponentProvider: JSR-250 'javax.annotation.ManagedBean' found a
nd supported for component scanning
INFO 2017-11-16 14:38:52,598 org.springframework.beans.factory.support.DefaultL
istableBeanFactory: Pre-instantiating singletons in org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory@1328659d: defining beans [activeNumberC
ontroller,apkController,userController,agencyController,ideaController,myloansCo
ntroller,orderController,pactContoller,signInController,weController,activityCon
troller,classifyController,homeAll,HUController,labelController,messageControlle
r,productController,ruleController,shoppingController,slideShowController,jobInf
oController,mainInfoController,orderBasicInfoController,permitController,saveOrd
er,converController,issueController,iusseUserController,totalController,userBasi
cController,userParticularController,userTrueController,xiaoXiController,org.spr
ingframework.context.annotation.internalConfigurationAnnotationProcessor,org.spr
ingframework.context.annotation.internalAutowiredAnnotationProcessor,org.springf
ramework.context.annotation.internalRequiredAnnotationProcessor,org.springframew
ork.context.annotation.internalCommonAnnotationProcessor,dataSource,sqlSessionFa
ctory,dao,upd,utd,converdi,issuedi,totaldi,xiaoxidi,issueuserdi,userService,user
ParticularService,userTrueServiceImpl,convertServiceImpl,issueServiceImpl,totalS
erviceImpl,xiaoXiServiceImpl,issueUserServiceImpl,userdao,apkdao,userServiceImpl
,apkServiceImpl,ssdi,pdi,mdi,sdi,ldi,aidi,tgdi,cdi,hudi,ruledao,ndi,slideShowSer
viceImpl,NewsServiceImpl,productServiceImpl,messageServiceImpl,shoppingServiceIm
pl,labelServiceImpl,activityServiceImpl,tongGaoServiceImpl,classifyServiceImpl,h
omeUtilServiceImpl,ruleServiceImpl,adiiu,idi,wdi,odi,signidi,pactdi,myldi,agency
ServiceImpl,ideaServiceImpl,weServiceImpl,signInServiceImpl,pactServiceImpl,mylo
ansServiceImpl,midi,jidi,obidi,permitdi,mainInfoServiceImpl,jobInfoServiceImpl,o
rderBasicInfoServiceImpl,permitServiceImpl,org.springframework.context.annotatio
n.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of facto
ry hierarchy
INFO 2017-11-16 14:38:52,605 org.springframework.jdbc.datasource.DriverManagerD
ataSource: Loaded JDBC driver: com.mysql.jdbc.Driver

  • 写回答

2条回答 默认 最新

  • wangjinshan2827 2017-11-16 06:47
    关注

    检查 jdbc.properties 文件的配置是否书写正确 其次检车每个配置参数后面有没有空格 如果有空格 当你在每个参数结尾处按右向箭头时 不会换行 而是空一格 如果没有空格 会直接跳到第二行 希望对你有所帮助

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥60 SOL语句中Where查询中的 from to 语句能不能从小到大换成从大到小(标签-SQL)
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 请教一下c语言的代码里有一个地方不懂
  • ¥15 opencv 无法读取视频
  • ¥15 用matlab 实现通信仿真
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))