[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置文件有问题报错 #67

Closed
baolintian opened this issue Aug 20, 2020 · 0 comments
Closed

配置文件有问题报错 #67

baolintian opened this issue Aug 20, 2020 · 0 comments

Comments

@baolintian
Copy link
baolintian commented Aug 20, 2020

运行环境为windows。
运行mall-tiny-01generator时有这样的错误:

Thu Aug 20 18:45:03 CST 2020 WARN: Caught while disconnecting...

EXCEPTION STACK TRACE:



** BEGIN NESTED EXCEPTION ** 

javax.net.ssl.SSLException
MESSAGE: closing inbound before receiving peer's close_notify

STACKTRACE:

javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify
	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:314)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:270)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:261)
	at java.base/sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:645)
	at java.base/sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:624)
	at com.mysql.cj.protocol.a.NativeProtocol.quit(NativeProtocol.java:1319)
	at com.mysql.cj.NativeSession.quit(NativeSession.java:182)
	at com.mysql.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1750)
	at com.mysql.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:720)
	at org.mybatis.generator.config.Context.closeConnection(Context.java:748)
	at org.mybatis.generator.config.Context.introspectTables(Context.java:649)
	at org.mybatis.generator.api.MyBatisGenerator.generate(MyBatisGenerator.java:254)
	at org.mybatis.generator.api.MyBatisGenerator.generate(MyBatisGenerator.java:138)
	at com.macro.mall.tiny.mbg.Generator.main(Generator.java:32)


** END NESTED EXCEPTION **

需要在resources/generator.properties中一行改为jdbc.connectionURL=jdbc:mysql://localhost:3306/mall?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
方法源自:source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants