数据库异常com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException

2017-09-13 17:05:03[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: select count(*) from wechat_code where `status`=1
 2017-09-13 17:05:03[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: select count(*) from wechat_code where `status`=1
 2017-09-13 17:05:03[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: select count(*) from wechat_code where `status`=1
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] 逻辑save
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: select wechatcode0_.id as id1_60_0_, wechatcode0_.scene_id as scene_id2_60_0_, wechatcode0_.created_at as created_3_60_0_, wechatcode0_.status as status4_60_0_, wechatcode0_.text1 as text5_60_0_, wechatcode0_.text2 as text6_60_0_, wechatcode0_.updated_at as updated_7_60_0_, wechatcode0_.template_data as template8_60_0_, wechatcode0_.ticket as ticket9_60_0_, wechatcode0_.url as url10_60_0_ from wechat_code wechatcode0_ where wechatcode0_.id=? and wechatcode0_.scene_id=?
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: insert into wechat_code (created_at, status, text1, text2, updated_at, template_data, ticket, url, id, scene_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] 逻辑save
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: select wechatcode0_.id as id1_60_0_, wechatcode0_.scene_id as scene_id2_60_0_, wechatcode0_.created_at as created_3_60_0_, wechatcode0_.status as status4_60_0_, wechatcode0_.text1 as text5_60_0_, wechatcode0_.text2 as text6_60_0_, wechatcode0_.updated_at as updated_7_60_0_, wechatcode0_.template_data as template8_60_0_, wechatcode0_.ticket as ticket9_60_0_, wechatcode0_.url as url10_60_0_ from wechat_code wechatcode0_ where wechatcode0_.id=? and wechatcode0_.scene_id=?
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: insert into wechat_code (created_at, status, text1, text2, updated_at, template_data, ticket, url, id, scene_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
 2017-09-13 17:05:04[org.hibernate.engine.jdbc.spi.SqlExceptionHelper]-[ERROR] Duplicate entry '2' for key 'UK_aepoxjtry3cwtfkoi2tno6y4t'
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [UK_aepoxjtry3cwtfkoi2tno6y4t]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:259)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:521)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:485)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:131)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.sun.proxy.$Proxy152.save(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.dianju.modules.wechat.controller.WechatController.generateQrCode(WechatController.java:127)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.lang.reflect.Method.invoke(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:737)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:871)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.lang.Thread.run(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:72)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:211)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:62)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3124)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3581)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:104)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:77)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:517)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     ... 68 more
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '2' for key 'UK_aepoxjtry3cwtfkoi2tno6y4t'
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.Util.getInstance(Util.java:387)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:932)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] 逻辑save
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2551)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5094)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1994)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:208)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     ... 82 more
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: select wechatcode0_.id as id1_60_0_, wechatcode0_.scene_id as scene_id2_60_0_, wechatcode0_.created_at as created_3_60_0_, wechatcode0_.status as status4_60_0_, wechatcode0_.text1 as text5_60_0_, wechatcode0_.text2 as text6_60_0_, wechatcode0_.updated_at as updated_7_60_0_, wechatcode0_.template_data as template8_60_0_, wechatcode0_.ticket as ticket9_60_0_, wechatcode0_.url as url10_60_0_ from wechat_code wechatcode0_ where wechatcode0_.id=? and wechatcode0_.scene_id=?
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Hibernate: insert into wechat_code (created_at, status, text1, text2, updated_at, template_data, ticket, url, id, scene_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
 2017-09-13 17:05:04[org.hibernate.engine.jdbc.spi.SqlExceptionHelper]-[ERROR] Duplicate entry '2' for key 'UK_aepoxjtry3cwtfkoi2tno6y4t'
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [UK_aepoxjtry3cwtfkoi2tno6y4t]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:259)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:521)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:485)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:131)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.sun.proxy.$Proxy152.save(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.dianju.modules.wechat.controller.WechatController.generateQrCode(WechatController.java:127)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.lang.reflect.Method.invoke(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:737)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:871)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.lang.Thread.run(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:72)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:211)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:62)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3124)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3581)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:104)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:77)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:517)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     ... 68 more
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '2' for key 'UK_aepoxjtry3cwtfkoi2tno6y4t'
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.Util.getInstance(Util.java:387)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:932)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2551)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5094)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1994)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:208)
 2017-09-13 17:05:04[com.dianju.core.SystemOutPrint]-[INFO]     ... 82 more

此处就是数据库导致的一个异常,数据库重新建表即可,因为我们的项目是有数据库初始化,可以自动建表,所以只是需要把原来的表格删除即可

你可能感兴趣的:(数据库异常com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException)