Struts 2 Convention Plugin Define Multiple Parent Packages

前端 未结 2 667
无人共我
无人共我 2021-01-23 17:53

I\'m working on Struts 2 web application, using the Convention Plugin to configure everything via annotations. I\'m hitting a snag with some of my action classes, where I\'d lik

2条回答
  •  情书的邮戳
    2021-01-23 18:07

    I checked org.apache.struts2.convention.annotation.ParentPackage for you, it is not allowed to define multi-parent-package. here is the snippet:

    @Target({ElementType.TYPE, ElementType.PACKAGE})
    @Retention(value = RetentionPolicy.RUNTIME)
    public @interface ParentPackage {
        /**
         * @return  The parent package.
         */
        String value();
    }
    

提交回复
热议问题