A.Line24canneverbereached.
B.ThedeploymentdescriptorisNOTvalid.
C.Ifline24executes,theuser’srolewillbeAdmin.
D.Ifline24executes,theuser’srolewillbeAdministrator.
E.Ifline24executestheuser’srolewillNOTbepredictable.
第1题
GiventhesecurityconstraintinaDD:101.<security-constraint>102.<web-resource-collection>103.<web-resource-name>Foo</web-resource-name>104.<url-pattern>/Bar/Baz/*</url-pattern>105.<http-method>POST</http-method>106.</web-resource-collection>107.<auth-constraint>108.<role-name>DEVELOPER</role-name>109.</auth-constraint>110.</security-constraint>Andgiventhat"MANAGER"isavalidrole-name,whichfouraretrueforthissecurityconstraint?()
A.MANAGERcandoaGETonresourcesinthe/Bar/Bazdirectory.
B.MANAGERcandoaPOSTonanyresourceinthe/Bar/Bazdirectory.
C.MANAGERcandoaTRACEonanyresourceinthe/Bar/Bazdirectory.
D.DEVELOPERcandoaGETonresourcesinthe/Bar/Bazdirectory.
E.DEVELOPERcandoonlyaPOSTonresourcesinthe/Bar/Bazdirectory.
F.DEVELOPERcandoaTRACEonanyresourceinthe/Bar/Bazdirectory.
第2题
A.Error
B.Event
C.Object
D.Exception
E.Throwable
F.RuntimeException
第3题
A.ejb-ref
B.jdbc-ref
C.servlet-ref
D.resource-ref
E.javamail-ref
F.resource-env-ref
第4题
A.Placingitinthe/securedirectory
B.Placingitinthe/WEB-INFdirectory
C.Placingitinthe/META-INF/securedirectory
D.Creatingaelementwithinthedeploymentdescriptor
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!