init-param and context-param

前端 未结 5 1413
说谎
说谎 2020-12-02 04:29

What is the difference between and !?

5条回答
  •  佛祖请我去吃肉
    2020-12-02 05:19

     
        contextConfigLocation
        
            classpath*:/META-INF/PersistenceContext.xml
        
    
    

    I have initialized my PersistenceContext.xml within because all my servlets will be interacting with database in MVC framework.

    Howerver,

    
        jersey-servlet
        com.sun.jersey.spi.spring.container.servlet.SpringServlet
        
            contextConfigLocation
            
                classpath:ApplicationContext.xml
            
        
        
            com.sun.jersey.config.property.packages
            com.organisation.project.rest
        
    
    

    in the aforementioned code, I am configuring jersey and the ApplicationContext.xml only to rest layer. For the same I am using

提交回复
热议问题