當前文章的短網址連結為: https://unos.top/a5vf
假设包名packageName为 top.unos
Code language: CSS (css)
如果是Windows平台,通常写法为
String basePackagePath = basePackage.replaceAll("\\.","\\\\");
Code language: JavaScript (javascript)
推荐下面这种写法,具有跨平台性(Windows,Unix)
String basePackagePath
= basePackage.replaceAll("\\.",Matcher.quoteReplacement(File.separator));
Code language: JavaScript (javascript)