Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java/JSPÁ¬½ÓPostgreÊý¾Ý¿â³£¼ûÎÊÌâ½â´ð

Ò»¡¢
ÎÊ£ºorg.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "192.168.254.103", user "postgres",database "postgres", SSL off
´ð£ºPostgreSQÊý¾Ý¿âΪÁË°²È«£¬Ëü²»»á¼àÌý³ý±¾µØÒÔÍâµÄËùÓÐÁ¬½ÓÇëÇ󣬵±Óû§Í¨¹ýJDBC·ÃÎÊÊÇ£¬¾Í»á±¨Ò»Ð©ÒÔÉϵÄÒì³£¡£Òª½â¾öÕâ¸öÎÊÌ⣬ֻÐèÒªÔÚPostgreSQLÊý¾Ý¿âµÄ°²×°Ä¿Â¼ÏÂÕÒµ½/data/pg_hba.conf,ÕÒµ½“# IPv4 local
connections:”
ÔÚÆäϼÓÉÏÇëÇóÁ¬½ÓµÄ»úÆ÷IP
host all all 192.168.254.103/32 md5
£¨32ÊÇ×ÓÍøÑÚÂëµÄÍø¶Î£»md5ÊÇÃÜÂëÑéÖ¤·½·¨£¬¿ÉÒԸģ©
×¢Ò⣺±¾»ú¾ÖÓòÍø192.168.254.100ºÍ127.0.0.1ϵͳ²»ÈÏΪÊÇÏàͬµÄ¡£
¶þ¡¢


Ïà¹ØÎĵµ£º

Java¼¯ºÏ

  JavaÊý×éÊÇÒ»¸öJava¶ÔÏó£¬Êý×éµÄ³¤¶ÈÊǹ̶¨µÄ£¬ÔÚͬһ¸öÊý×éÖÐÖ»Äܹ»´æ·ÅÏàͬÀàÐ͵ÄÊý¾Ý£¬Êý×é¿ÉÒÔ´æ·Å»ù±¾ÀàÐ͵ÄÊý¾Ý£¬Ò²¿ÉÒÔ´æ·ÅÒýÓÃÀàÐ͵ÄÊý¾Ý¡£ÔÚ´´½¨Êý×é¶ÔÏóʱ£¬±ØÐëÖ¸¶¨Êý×é¶ÔÏóµÄ³¤¶È£¬Êý×éÒ»µ©´´½¨£¬ËüµÄ³¤¶È¾Í²»ÄÜÔÙ±ä
  £¨1£©´´½¨Êý×é¶ÔÏ󣨼´newÒ»¸öÊý×éʱ£©ÒªÖ¸¶¨Êý×éµÄ³¤¶È£¬Êý×éµÄ³¤¶ÈÒ»µ©Ö¸¶¨ ......

javaÖÐ stringÀàÐÍת»»³ÉUTF 8

1¡¢²âÊÔ·½·¨ÈçÏ£º
          public static String toUtf8(String str) {
               return new String(str.getBytes("UTF-8"),"UTF-8"):
       &nb ......

java ÏÂÔØÎļþ·½·¨´óÈ«


jspÖÐʵÏÖÎļþÏÂÔصÄ×î¼òµ¥µÄ·½Ê½ÊÇÔÚÍøÒ³ÉÏ×ö³¬¼¶Á´½Ó£¬È磺<a href="music/abc.mp3">µã»÷ÏÂÔØ</a>¡£µ«ÊÇÕâÑù·þÎñÆ÷ÉϵÄĿ¼×ÊÔ´»áÖ±½Ó±©Â¶¸ø×îÖÕÓû§£¬»á¸øÍøÕ¾´øÀ´Ò»Ð©²» °²È«µÄÒòËØ¡£Òò´Ë¿ÉÒÔ²ÉÓÃÆäËü·½Ê½ÊµÏÖÏÂÔØ£¬¿ÉÒÔ²ÉÓãº1¡¢RequestDispatcherµÄ·½Ê½½øÐУ»2¡¢²ÉÓÃÎļþÁ÷Êä³öµÄ·½Ê½ÏÂÔØ¡£
1¡¢²ÉÓÃRe ......

jsp ºÍ javaµÄÖ÷ÒªÇø±ðÊÇʲô?

javascriptдjavaû¹Øϵ,ÖÁÓÚΪʲôÃû×ÖÕâôÏà½ü,¿ÉÄÜÊÇÒòΪjavaºÜÓÐÃûÆøËùÒÔ°ÑÃû×ÖÈ¡³É²î²»¶àµÄ,Ò»ÖÖÐÂÓïÑÔ¸Õ³öÀ´µÄʱºòÒªµãÃûÆøÀ´³öÃû°É~~
javascriptËãÊÇÒ»ÖÖhtml½Å±¾ÄÜÖ±½ÓÖ´ÐеÄÓïÑÔ°É,jspÒª±àÒë²ÅÄÜÖ´ÐÐ,Äã×Ô¼ºÐ´¸öJSP²»¿ªtomcatÖ®ÀàµÄÊÇÎÞ·¨Ö´ÐеÄ.JSPºÍJAVAµÄÇø±ð,JSPËãÊÇJAVAÒ»ÖÖ¼¼Êõ°É,ÓÃÔÚÍøÒ³±à³ÌÉÏ,ÒòΪJAVA² ......

Ext+json+jsp¹¹½¨µÄ¶¯Ì¬Ê÷

Ê÷½Úµã×éºÏÄ£ÐÍ
package cn.com.jsnh.model.catalog;
public class TreeModel {
private String node;
private CatalogModel model;
public String getNode() {
return node;
}
public void setNode(String node) {
this.node = node;
}
public CatalogModel getModel() {
return model;
}
public void setMo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ