Illegal escape character in string literal

Using spring MVC pattern write action time, Illegal escape character appears in string literal error, the investigation is due to the use of the "\" as the path separator, such as "Index \ index", this time with the need to slash in front of a plus \ escape, and this separator is only useful for the windows system, more serious limitations. We recommend using "/" as a separator or File.separator, it is best not to use "\."

Guess you like

Origin blog.csdn.net/XIAO_YAO_YOU_0/article/details/89874470