为了账号安全,请及时绑定邮箱和手机立即绑定

Caused by: org.xml.sax.SAXParseException: 外部 DTD: 无法读取外部 DTD 'mybatis-generator-config_1_0.dtd', 因为 accessExternalDTD 属性设置的限制导致不允许 'http' 访问。

/Library/Java/JavaVirtualMachines/jdk-11.0.8.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=60886:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Users/antao/.m2/repository/org/junit/platform/junit-platform-launcher/1.6.2/junit-platform-

 :: Spring Boot ::        (v2.3.4.RELEASE)

2020-09-28 18:15:08.893  INFO 70896 --- [           main] com.at.demo.mapper.AreaMapperTest        : Starting AreaMapperTest on bogon with PID 70896 (started by antao in /Users/antao/项目/demo)

2020-09-28 18:15:08.894  INFO 70896 --- [           main] com.at.demo.mapper.AreaMapperTest        : No active profile set, falling back to default profiles: default

2020-09-28 18:15:09.659  INFO 70896 --- [g-Init-Reporter] com.mchange.v2.log.MLog                  : MLog clients using slf4j logging.

2020-09-28 18:15:09.747  INFO 70896 --- [           main] com.mchange.v2.c3p0.C3P0Registry         : Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]

2020-09-28 18:15:09.893  WARN 70896 --- [           main] o.s.w.c.s.GenericWebApplicationContext   : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/at/demo/dao/SessionFactoryConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 67; 外部 DTD: 无法读取外部 DTD 'mybatis-generator-config_1_0.dtd', 因为 accessExternalDTD 属性设置的限制导致不允许 'http' 访问。

2020-09-28 18:15:09.900  INFO 70896 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2020-09-28 18:15:09.905 ERROR 70896 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/at/demo/dao/SessionFactoryConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 67; 外部 DTD: 无法读取外部 DTD 'mybatis-generator-config_1_0.dtd', 因为 accessExternalDTD 属性设置的限制导致不允许 'http' 访问。


正在回答

举报

0/150
提交
取消

Caused by: org.xml.sax.SAXParseException: 外部 DTD: 无法读取外部 DTD 'mybatis-generator-config_1_0.dtd', 因为 accessExternalDTD 属性设置的限制导致不允许 'http' 访问。

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信