原创 總結的一些小知識點

1.將字符串轉爲map的方式: String objstr = request.getParameter("objstr"); List<Map<String,Object>>valueList=JSONArray.fromObject(

原创 一種讀取.properties配置文件參數的方法

比如創建一個類如下: import java.util.Properties; import org.apache.log4j.Logger; public class SMPConfigReader { private stat

原创 log4j.properties文件配置的一種方式

# This is the configuring for logging displayed in the Application Server log4j.rootCategory=DEBUG,stdout,logfile #st

原创 web.xml文件的一種配置方式

<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://jav