240 发简信
IP属地:江苏
  • 谢谢你,上一个问题解决了,在我连接数据库注册用户名密码的时候,抛出了异常,不知道是什么原因,试了许多方法都没有解决
    ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root '@'localhost' (using password: YES)
    ### The error may exist in com/zph/security/mapper/UserInfoMapper.java (best guess)
    ### The error may involve com.zph.security.mapper.UserInfoMapper.selectByUserName
    ### The error occurred while executing a query
    ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root '@'localhost' (using password: YES)] with root cause

    java.sql.SQLException: Access denied for user 'root '@'localhost' (using password: YES)
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.12.jar:8.0.12]
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) ~[mysql-connector-java-8.0.12.jar:8.0.12]
    at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.12.jar:8.0.12]
    at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:832) ~[mysql-connector-java-8.0.12.jar:8.0.12]
    at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456) ~[mysql-connector-java-8.0.12.jar:8.0.12]
    at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240) ~[mysql-connector-java-8.0.12.jar:8.0.12]
    at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:207) ~[mysql-connector-java-8.0.12.jar:8.0.12]
    at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:136) ~[HikariCP-3.2.0.jar:na]
    at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:369) ~[HikariCP-3.2.0.jar:na]

    Spring-Security-教程(二)--基于数据库信息进行验证

    介绍 本篇文章将讲解使用Spring Security + Mybatis + Mysql数据库实现简单的登录校验,以及密码加密校验。 博客地址:https://blog.f...

  • Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
    2019-07-10 21:20:39.135 ERROR 5196 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :

    ***************************
    APPLICATION FAILED TO START
    ***************************

    Description:

    Field userInfoService in com.zph.testsecurity.configuration.MyUserDetailsService required a bean of type 'com.zph.testsecurity.configuration.service.UserInfoService' that could not be found.

    The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)

    Action:

    Consider defining a bean of type 'com.zph.testsecurity.configuration.service.UserInfoService' in your configuration.

    Process finished with exit code 0

    出现这个错误怎么办?

    Spring-Security-教程(二)--基于数据库信息进行验证

    介绍 本篇文章将讲解使用Spring Security + Mybatis + Mysql数据库实现简单的登录校验,以及密码加密校验。 博客地址:https://blog.f...

  • 120
    浅谈知识图谱基础

    这篇文章主要参考了[1]刘峤,李杨,段宏,刘瑶,秦志光. 知识图谱构建技术综述[J]. 计算机研究与发展,2016,(03):582-600. 其实知识图谱这块内容在我自己做...

  • 120
    知识图谱应用篇(二)-问答系统

    笔者写了一篇知识图谱在搜索与推荐中的应用,这篇文章会着重讲讲问答系统中的人机交互和自然语言处理相关的问题。简单聊聊人机交互,目前人机交互的常见场景有如下三种:闲聊型(Chat...

  • 120
    知识图谱的应用篇(一)-搜索与推荐

    之前从产品经理角度写了三篇有关知识图谱的基础知识,这篇文章和以后的文章会更贴近业务层面来写一些知识图谱的商业应用。为什么要把搜索与推荐放一起,是因为这俩兄弟绑定的太深了。 如...

  • 120
    知识图谱基础(三)-schema的构建

    在前面一篇文章《知识图谱基础(二)-知识表达系统》中介绍了知识图谱的基础知识表达系统,什么是entity,什么是relation,什么是domain,什么是type等等。本篇...