´«ÖDz¥¿Íjavaѧϰ javaweb¹ýÂËÆ÷£¨filter£©
ÎÒ½ñÌìѧϰÁ˹ýÂËÆ÷£¨filter£©µÄ֪ʶ£¬ÊÇ·ëÀÏʦ½²µÄ¿Î£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
Servlet¹ýÂËÆ÷£¨Filter£©£º²»ÏÞ¶¨ÓÚ¾ßÌåµÄÐÒé
Ò»¡¢ ʹÓÃÀ¹½ØÉèÖÃÇëÇó×Ö·û±àÂ룬¹ýÂË·Ç·¨ÎÄ×Ö£¬ÑéÖ¤¿Í»§ÊÇ·ñÒѾµÇ½£¬
¶þ¡¢ ±àд¹ýÂËÆ÷£º
a) ½¨Á¢Ò»¸öclass£¬ÊµÏÖFilter½Ó¿Ú£¬ÓÐÈý¸ö·½·¨£¬ÊǹýÂËÆ÷ÉúÃüÖÜÆڵķ½·¨£¬init£¨£©³õʼ»¯£ºÖ´ÐÐÒ»´Î£¬doFilter£¨£©Íê³É¹ýÂËÈÎÎñ£ºÖ´Ðжà´Î£¬destroy£¨£©¹ýÂËÆ÷Ïú»Ù£ºÖ´ÐÐÒ»´Î£¬£¨ÏÈʵÀý»¯£¬ºó³õʼ»¯£©£¬ÓÐÇëÇóʱ²ÅÖ´ÐÐdoFilter·½·¨£¬
b) ÔÚweb.xmlÀïÃæ×¢²á¹ýÂËÆ÷: ( /* )´ú±íÀ¹½ØËùÓеÄÎļþ <filter><filter-name> </filter-name><filter-class><filter-class></filter> ÅäÖÃÓ³ÉäÐÅÏ¢£º<filter-mapping><filter-name></filter-name> <url-pattern>/*</url-pattern> </filter-maping>
c) ÔÚdoFilter£¨£©ÀïÃæ·ÅÐУºchain.doFilter(request,repsonse);
Èý¡¢ ³õʼ»¯·½·¨£ºInit(FilterConfig filterConfig )£º¶ÁÈ¡¹ýÂËÆ÷µÄ³õʼ»¯²ÎÊý£ºfilterConfig.getInitParameter(“nba”); ʹÓÃö¾Ù¶ÁÈ¡£º Enum em =filterConfig.getInitParamternames(); Êä³öÉÏÏÂÎIJÎÊý£»filterCOnfig.getServletcontext.getInitparamternames()
ËÄ¡¢ doFilter( )
Ïà¹ØÎĵµ£º
ÎÒ½ñÌìѧϰÁËOracleÊý¾Ý¿âÈçºÎÐ޸ıíµÄ֪ʶ£¬ÊÇ·ëÍþÀÏʦ½²µÄ¿Î£¬ÎÒ×öÁ˼òµ¥µÄ¼Ç¼£º
1.ÔÚ±íÖвåÈëеÄÁУº
alter table tablename
add city varchar£¨2£© default 'rr' //¸³Ä¬ÈÏÖµ
2.Ð޸ıíÖеÄÁУº
alter table tablename
modify city varchar£¨20£©
3.ɾ³ý±íÖеÄÁУº
alter t ......
public class Bean1 {
private String strValue;
private int intValue;
private List listValue;
private Set setValue;
private String[] arrayValue;
private Map mapValue;
public String getStrValue() {
return strValue;
}
public void setStrValue(String strValue) {
t ......
ÔÚÂÛ̳Àï¿´ÁËdaquan198163ËùдµÄ¡¶³õѧRORµÄÒÉ»ó¡·ÕâƪÎÄÕ£¬robbinÔڻظ´ÖиøÁËÏêϸµÄ½â´ð£¬¿ÉÊÇ¿´Íê½â´ðÖ®ºó£¬ÎÒÒ²²úÉúÁËһЩÒÉ»ó£¬ÔÚ´ËÏëÎÊÎÊ¡£
ÔÚrobbinËù¸ø³öµÄ½â´ðµ±ÖУ¬¸ü¶àµÄÊDzûÊörailsµÄºÃ´¦£¬È»¶ø´ó¼Ò¶¼ÖªµÀ£¬railsÖ»Ê ......
maven ÏàÐźܶàÈ˶¼Óõ½Ìý¹ý£¬ÓõÄÈËÓ¦¸Ã²»ÊǺܶ࣬ÖÁÉÙÎÒÃǹ«Ë¾1000È˼¶±ðµÄIT²¿ÃŶ¼Ã»Óá£
¸´Ôӳ̶Ⱦö¶¨¹¤¾ßµÄʹÓÃÇé¿ö£¬¸ÕÈëÃŵijÌÐòÔ±Èç¹ûûÓÐÒ»ÖÖÁ¼ºÃµÄѧϰÐÄ̬¿´Á˿϶¨»á¶ÔantÓе㱧Թ(ʹµÃÄã²»ÄܺܿìÔÚecÉÏ¿´µ½½á¹û)¡£¿öÇÒ²»Ëµmaven×öµÄºÃ²»ºÃ£¬ÆðÂëÄܸø´óÐÍÏîÄ¿µÄ¹ÜÀíÌṩһÖÖеÄ˼·¡£×Ô¶¯»¯ÄܼõÉٺܶàʱ¼äºÍ½» ......
/* ¸ßÊÖÖ®×÷£¬±¾È˽÷ÒÔÊÕ²ØÕßÉí·ÝÄóö¹²Ïí¹©´ó¼Ò²Î¿¼! */
/*
* ÏòÁ¿½Ó¿Ú
*/
package dsa;
public interface Vector {
//·µ»ØÏòÁ¿ÖÐÔªËØÊýÄ¿
public int getSize();
//ÅжÏÏòÁ¿ÊÇ·ñΪ¿Õ
public boolean isEmpty();
//È¡ÖÈΪrµÄÔªËØ
public Object getAtRank(int r)
throws ......