Glassfish 4 scans for @PostConstruct with CDI disabled

后端 未结 2 1582
粉色の甜心
粉色の甜心 2021-01-14 16:52

I\'m doing and upgrade from Glassfish 3.1.2.2 to Glassfish 4.1 for a set of Spring applications. Since I use the Spring t

2条回答
  •  萌比男神i
    2021-01-14 17:07

    You can solve this issue first by adding a web.xml with metadata-complete="true". Next you will want to make sure your context are in the Web root Directory /WEB-INF/.

    With this glassfish can load all @PostConstructSpring dependencies.

    More of a work around in my opinion.

提交回复
热议问题