javabeans在idea中調用時無法被加載調用問題解決方案

Classes from the default package must not be referenced from JSP file less... (Ctrl+F1) 
This inspection reports any references to a classes from the default package in JSP files.
Such references will not be resolved during compilation of the JSP because a compiled class for the JSP will be usually placed in non-default package (e.g. "org.apache.jsp" in case of Tomcat, "com.ibm._jsp" in case of WebSphere) but the import from the default package is prohibited in Java
 

問題解決方法

給類前面加一個包就行,javabeans不能存在於沒有包的環境中被調用

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章