IDEA解决URI is not registered (Settings | Languages & Frameworks | Schemas and DTD
想弄个mybatis****,添加了
<!-- 添加mybatis依赖 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>${mybatis.version}</version> </dependency>
<!-- 添加mybatis/spring整合包依赖 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>1.3.0</version> </dependency>
<!-- 添加mysql驱动依赖 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql-driver.version}</version> </dependency>
在build那也写入了插件
<!--mybatis****--> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2</version> <configuration> <verbose>true</verbose> <overwrite>true</overwrite> </configuration> </plugin>
相应的jar包依赖配置完成。
开始写generatorConfig.xml文件引入head时,报
URI is not registered (Settings | Languages & Frameworks | Schemas and DTD错误
然后点击File-setters
找到Schemas and DTDS,点击+号把你报错的url连接加进来,之后点OK就好了