Today in doing project encounter such an exception, java.lang.IllegalArgumentException:Malformed \UXXXX encoding, Project has sysconf.properties configuration file, configure system parameters
# database Config
Jdbc.driverclassname=com.mysql.jdbc.driver
jdbc.url=jdbc:mysql://192.168.11.214:3306/qsboss?autoreconnect=true&maxreconnects=5& Initialtimeout=5&useunicode=true&characterencoding=utf8
Jdbc.username=qsboss
Jdbc.password=qsboss
jdbc.maxactive=100
Jdbc.maxidle=50
jdbc.maxwait=100
#附件存储地址
File.storepath=e:/qsboss/svn/code/branches/v1.0.0/qsboss/web/src/main/webapp/upload
Injected with annotations in controller
@Value ("${file.storepath}")
Private String Filestorepath; Attachment Storage Directory
There are two possible causes for this exception:
1${file.storepath} "") mistakenly written in #{file.storepath} ")
The 2 path section uses \ instead of/, the system defaults to parse the form of \u, should use \ or/