修复可能存在的异常
This commit is contained in:
@@ -43,6 +43,9 @@ public class SitemapGenerateUtil {
|
|||||||
@Async
|
@Async
|
||||||
public void createSitemap() {
|
public void createSitemap() {
|
||||||
initList();
|
initList();
|
||||||
|
if ("".equals(path) || "classpath".equals(path)) {
|
||||||
|
path = System.getProperty("user.dir")+"/sitemap.xml";
|
||||||
|
}
|
||||||
File file = new File(path);
|
File file = new File(path);
|
||||||
try {
|
try {
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user