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

打成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 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵