J2EE错误集合

1.j2ee连接数据库
1.1
Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: The server time zone value ‘???ú±ê×??±??’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

在这里插入图片描述
方法一:
解决办法:将applicationContext.xml文件中的配置数据库的

		<!--连接数据库的url -->
		<property name="url" value="jdbc:mysql://localhost:3306/spring" />

改为

		<!--连接数据库的url -->
		<property name="url" value="jdbc:mysql://localhost:3306/spring?serverTimezone=CST" />

加个中国上海的时区

方法二:
右击该项目
在这里插入图片描述
在这里插入图片描述

1.2 Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user ‘r’@‘localhost’ (using password: YES)
在这里插入图片描述
解决办法:输入正确的数据库名及密码

1.3Eclipse创建Servers没有Apache选项
help->install new software加入网址是http://download.eclipse.org/releases/2020-06。得到一系列的插件在Web, XML, and Java EE Development中找到JST Server Adapters and JST Server Adapters Extensions。

1.4
网页404错误的问题 源服务器未能找到目标资源的表示或者是不愿公开一个已经存在的资源表示。
在这里插入图片描述
web.xml文件应该在WEB-INF文件夹中

1.4
报错:Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-4.3.xsd). For more information, right click on the message in the Problems View and select “Show Details…”
解决方法:
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值