按要求寫好只好出錯(cuò)Access denied for user
按照老師的那些做法寫好之后運(yùn)行了一下卻發(fā)現(xiàn)發(fā)生以下的錯(cuò)誤:
java.sql.SQLException: Access denied for user 'SighFate'@'localhost' (using password: YES)
但是我在配置jdbc的時(shí)候卻是以下的配置:
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/seckill?useUnicode=true&characterEncoding=UTF8
username=root
password=root
有人能告訴我為什么會發(fā)生這樣的事情,還有應(yīng)該怎么解決嗎?
2016-05-28
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/seckill?useUnicode=true&characterEncoding=utf8
jdbc.username=root
jdbc.password=708242
寫成這樣!
2016-08-08
你們好牛逼,我搞了一個(gè)晚上,網(wǎng)上各種搜不行,忽然看到這邊的問答,66666
2016-05-29
樓上正解,還有一種解決方案:
把spring-dao.xml的xsd文件換掉:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
? ? ?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
? ? ?xmlns:context="http://www.springframework.org/schema/context"
? ? ?xsi:schemaLocation="http://www.springframework.org/schema/beans
? ? ? ?http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
? ? ? ?http://www.springframework.org/schema/context
? ? ? ?http://www.springframework.org/schema/context/spring-context-3.0.xsd">
2016-05-16
換個(gè)數(shù)據(jù)庫連接池
2016-05-13
已經(jīng)有類似的問題了,我按照提示中去做。現(xiàn)在已經(jīng)成功了。。