我对Spring框架还很陌生,正在尝试Spring Roo。我一直在研究他们关于官方文档Here
的教程当我调用repository jpa
命令时,出现以下错误;
INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
下面是roo shell的痕迹。
roo> repository jpa --entity model:~.Customer --interface repository:~.CustomerRepository --defaultReturnType model:~.CustomerInfo
Created application:SRC_MAIN_JAVA\org\northwind\application\config\SpringDataJpaDetachableRepositoryConfiguration.java
Created repository:SRC_MAIN_JAVA\org\northwind\repository\CustomerRepository.java
Created repository:SRC_MAIN_JAVA\org\northwind\repository\CustomerRepositoryCustom.java
Undo manage application:ROOT\src\main\resources\application-dev.properties
Undo manage ROOT\.roo\config\project.properties
Undo manage application:ROOT\src\main\resources\application.properties
Undo manage ROOT\.roo\config\project.properties
Undo create repository:SRC_MAIN_JAVA\org\northwind\repository\CustomerRepositoryCustom.java
Undo create repository:SRC_MAIN_JAVA\org\northwind\repository\CustomerRepository.java
Undo create application:SRC_MAIN_JAVA\org\northwind\application\config\SpringDataJpaDetachableRepositoryConfiguration.java
Undo manage ROOT\.roo\config\project.properties
INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
roo> repository jpa --all
Created application:SRC_MAIN_JAVA\org\northwind\application\config\SpringDataJpaDetachableRepositoryConfiguration.java
Created repository:SRC_MAIN_JAVA\org\northwind\repository\CategoryRepository.java
Created repository:SRC_MAIN_JAVA\org\northwind\repository\CategoryRepositoryCustom.java
Undo manage application:ROOT\src\main\resources\application-dev.properties
Undo manage ROOT\.roo\config\project.properties
Undo manage application:ROOT\src\main\resources\application.properties
Undo manage ROOT\.roo\config\project.properties
Undo create repository:SRC_MAIN_JAVA\org\northwind\repository\CategoryRepositoryCustom.java
Undo create repository:SRC_MAIN_JAVA\org\northwind\repository\CategoryRepository.java
Undo create application:SRC_MAIN_JAVA\org\northwind\application\config\SpringDataJpaDetachableRepositoryConfiguration.java
Undo manage ROOT\.roo\config\project.properties
INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
roo>
什么可能导致此错误? 我可以从哪里开始寻找纠正问题的地方?
Spring Tool Suite 4版本:4.0.2.RELEAS Build ID:201811300843
Java 1.8.0.181
Spring Roo 2.0.0.RELEASE [rev 4a2e9f1]