How to setup jsp-config at JavaConfig

前端 未结 2 1654
甜味超标
甜味超标 2021-01-14 02:22

in web.xml


    
         
        JSPConfiguration<         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-14 02:51

    You have access to it with

    servletContext.getJspConfigDescriptor().getJspPropertyGroups();
    

    returning a Collection which has an add(JspPropertyGroupDescriptor) method. JspPropertyGroupDescriptor is an interface which you have to implement. You're probably better off having a partial web.xml and partial java configuration.

    Sotirios Delimanolis Apr 24 at 16:07

提交回复
热议问题