[Avalon] fix spring config for static and ignore google fonts for better loading speed

master
yihua.huang 2014-04-02 07:36:31 +08:00
parent 22e8697671
commit 94f97da4dc
9 changed files with 10 additions and 8 deletions

View File

@ -33,7 +33,7 @@
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param> <init-param>
<param-name>contextConfigLocation</param-name> <param-name>contextConfigLocation</param-name>
<param-value>classpath:/spring/applicationContext*.xml</param-value> <param-value>classpath*:config/spring/applicationContext*.xml</param-value>
</init-param> </init-param>
<load-on-startup>1</load-on-startup> <load-on-startup>1</load-on-startup>
</servlet> </servlet>

View File

@ -1,4 +1,4 @@
@import url(https://fonts.googleapis.com/css?family=Karla|Ubuntu); /*@import url(https://fonts.googleapis.com/css?family=Karla|Ubuntu);*/
/*! /*!
* Bootstrap v2.0.4 * Bootstrap v2.0.4
* *

View File

@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=Droid+Sans:400,700'); /*@import url('https://fonts.googleapis.com/css?family=Droid+Sans:400,700');*/
/*! /*!
* Bootstrap v2.0.4 * Bootstrap v2.0.4
* *

View File

@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700'); /*@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');*/
/*! /*!
* Bootstrap v2.0.4 * Bootstrap v2.0.4
* *

View File

@ -1,4 +1,4 @@
@import url(https://fonts.googleapis.com/css?family=Karla|Ubuntu); /*@import url(https://fonts.googleapis.com/css?family=Karla|Ubuntu);*/
/*! /*!
* Bootstrap v2.0.4 * Bootstrap v2.0.4
* *

View File

@ -1,4 +1,4 @@
@import url(https://fonts.googleapis.com/css?family=Ubuntu); /*@import url(https://fonts.googleapis.com/css?family=Ubuntu);*/
/*! /*!
* Bootstrap v2.0.4 * Bootstrap v2.0.4
* *

View File

@ -1,4 +1,4 @@
@import url(https://fonts.googleapis.com/css?family=Shojumaru); /*@import url(https://fonts.googleapis.com/css?family=Shojumaru);*/
select{ select{
background-color:#fff; background-color:#fff;

View File

@ -26,6 +26,8 @@
</property> </property>
</bean> </bean>
<mvc:resources mapping="/static/**" location="/static/" />
<mvc:annotation-driven/> <mvc:annotation-driven/>
</beans> </beans>

View File

@ -33,7 +33,7 @@
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param> <init-param>
<param-name>contextConfigLocation</param-name> <param-name>contextConfigLocation</param-name>
<param-value>classpath:/config/spring/applicationContext*.xml</param-value> <param-value>classpath*:/config/spring/applicationContext*.xml</param-value>
</init-param> </init-param>
<load-on-startup>1</load-on-startup> <load-on-startup>1</load-on-startup>
</servlet> </servlet>