Unable to find CDI BeanManager

报错内容:Unable to find CDI BeanManager
javax.faces.FacesException: Unable to find CDI BeanManager的解决方法

解决方法:修改WEB-INF/web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
posted @ 2022-10-27 21:50  Elon-Yan  阅读(202)  评论(0编辑  收藏  举报