Browse Source

修复自定义context-path,首页favicon.ico无法加载问题

RuoYi 4 years ago
parent
commit
2eb5752cc1

+ 1 - 1
ruoyi-admin/src/main/resources/templates/index.html

@@ -7,7 +7,7 @@
     <title>若依系统首页</title>
     <!-- 避免IE使用兼容模式 -->
  	<meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <link th:href="@{favicon.ico}" rel="stylesheet"/>
+    <link th:href="@{favicon.ico}" rel="shortcut icon"/>
     <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
     <link th:href="@{/css/jquery.contextMenu.min.css}" rel="stylesheet"/>
     <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>

+ 0 - 1
ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java

@@ -8,7 +8,6 @@ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
 import org.springframework.context.ApplicationContext;
 import org.springframework.context.ApplicationContextAware;
 import org.springframework.stereotype.Component;
-
 import com.ruoyi.common.utils.StringUtils;
 
 /**