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

打成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 MATLAB yalmip 可转移负荷的简单建模出错,如何解决?
  • ¥15 数学的三元一次方程求解
  • ¥20 iqoo11 如何下载安装工程模式
  • ¥15 本题的答案是不是有问题
  • ¥15 关于#r语言#的问题:(svydesign)为什么在一个大的数据集中抽取了一个小数据集
  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?