java吧 关注:1,248,230贴子:12,727,754
  • 4回复贴,共1

各位 麻烦看一下这是什么错误好吧 网上我也找了 没什么用

只看楼主收藏回复

Wed Feb 14 23:36:37 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Wed Feb 14 23:36:37 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Hibernate: drop table if exists user
Hibernate: create table user (user_id integer not null auto_increment, level integer, username varchar(255), login_number varchar(255), password varchar(255), primary key (user_id)) engine=InnoDB
二月 14, 2018 11:36:40 下午 org.springframework.orm.hibernate5.HibernateTransactionManager afterPropertiesSet
信息: Using DataSource [com.mchange.v2.c3p0.PoolBackedDataSource@385da8a3 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@6834fef2 [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, identityToken -> 1hge1d59t15bx8nyi91jhi|24b6b8f6, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@561582eb [ description -> null, driverClass -> null, factoryClassLocation -> null, forceUseNamedDriverClass -> false, identityToken -> 1hge1d59t15bx8nyi91jhi|4212a0c8, jdbcUrl -> jdbc:mysql://localhost:3306/video, properties -> {handling_mode=DELAYED_ACQUISITION_AND_HOLD, user=******, password=******} ], preferredTestQuery -> null, privilegeSpawnedThreads -> false, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, extensions -> {}, factoryClassLocation -> null, identityToken -> 1hge1d59t15bx8nyi91jhi|e077866, numHelperThreads -> 3 ]] of Hibernate SessionFactory for HibernateTransactionManager
我很奇怪的是 明明sql语句都出来可是内容却没有更新 只新建了张表,不是很懂什么情况,另外我MySQL服务也有开


1楼2018-02-14 23:48回复
    加油


    IP属地:浙江来自Android客户端2楼2018-02-15 09:27
    回复
      我的天哪 难道大神都不在的吗


      来自Android客户端4楼2018-02-17 17:16
      回复
        已解决:由于我以前是使用hibernate3版本所以在hibernate的配置文件有一行是这样写的<property name="hibernate.current_session_context_class">thread</property>
        有2种解决方法:
        第一种:hibernate3.x及以上的版本可以直接注释掉这条代码,或者删除也行 然后测试,可以完美运行了
        第二种:标签值thread改成 : org.springframework.orm.hibernate5.SpringSessionContext (因为我的hibernate是5.x的版本)最后改成:<property name="hibernate.current_session_context_class">org.springframework.orm.hibernate5.SpringSessionContext</property>
        注意注意:如果修改了以后还是不能够解决这个问题,就是说还是会报那个错误,那么,服务器缓存清一下,浏览器缓存清一下


        5楼2018-02-18 14:19
        回复