freemarker项目使用(直接访问模板)

pom.xml


  4.0.0
  cn.sk
  freemarker_demo
  0.0.1-SNAPSHOT
  war
  
   
                
            org.freemarker  
            freemarker  
            2.3.20  
       
  
          
            org.springframework  
            spring-context-support  
            3.2.9.RELEASE  
       
  
          
            org.springframework  
            spring-web  
            3.2.9.RELEASE  
       
  
          
            org.springframework  
            spring-webmvc  
            3.2.9.RELEASE  
       
  
          
            javax  
            javaee-api  
            7.0  
            provided  
       
  
          
            org.glassfish.web  
            javax.servlet.jsp.jstl  
            1.2.2  
       
  
 

   

springMvc.xml

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context-3.0.xsd">
 


   
   

 


   
   
 
   
   
 
   
              class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
       
       
       
           
                10
                zh_CN
                yyyy-MM-dd HH:mm:ss
                yyyy-MM-dd
                #.##
           

       

   

   
              class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver">
                          value="org.springframework.web.servlet.view.freemarker.FreeMarkerView" />
       
       
       
       
       
   



    

你可能感兴趣的:(java)