<servlet>
<init-param>
<param-name>aa</param-name>
<param-value>bb</param-value>
</init-param>
<init-param>
<param-name>cc</param-name>
<param-value>dd</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
@WebServlet(initParams={
@WebInitParam(name="aa",value="bb"),
@WebInitParam(name="cc",value="dd")
}
,loadOnStartup=1)
class ServletText extends HttpServlet{
}
'개발하자 > JSP&Servlet' 카테고리의 다른 글
blockUI (0) | 2015.03.28 |
---|---|
jQuery BlockUI Plugin (0) | 2015.03.28 |
Target,Retention xml파일에 FileOutputStream이용하여 내용넣기 (0) | 2015.03.28 |
m.getName().startsWith("set") Bean에 자동셋팅 (0) | 2015.03.28 |
getDeclaredMethod,getAnnotation (0) | 2015.03.28 |