`
文章列表
新建工作空间后,做以下配置: 1,修改空间字符编码: window ==> preferences ==> General ==> Workspace修改右侧的字符集 2,修改字体 window ==> preferences ==> General ==> apperance ==> Colors and Fonts ==> Basic ==> Text Font 3,修改编辑器背景色 window ==> preferences ==> General ==> Edit ...
log4j.rootLogger=debug,console,dailyFile log4j.logger.debuglog=debug,debuglog log4j.logger.infolog=debug,infolog log4j.logger.errorlog=debug,errorlog log4j.additivity.org.apache=true # console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.Threshold=debug l ...
1,创建Person类 package reflect; import java.io.InputStream; import java.util.List; public class Person { public String name="aaaaa"; private int password; private static int age; public Person() { System.out.println("person"); } public Person(String n ...
<!-- c3p0连接池配置 --> <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <!-- 用户名--> <property name="user" value="${username}"/> <!-- 用户密码--> <property name=& ...
数字类型 列类型 需要的存储量 TINYINT 1 字节 SMALLINT 2 个字节 MEDIUMINT 3 个字节 INT 4 个字节 INTEGER 4 个字节 BIGINT 8 个字节 FLOAT(X) 4 如果 X < = 24 或 8 如果 25 < = X < = 53 FLOAT 4 个字节 DOUBLE 8 个字节 DOUBLE PRECISION 8 个字节 ...
首先导入附件中的mail.jar和activation.jar 具体发邮件程序如下: package mail; import java.io.IOException; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message.RecipientType; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Se ...
一、Log4j简介Log4j有三个主要的组件:Loggers(记录器),Appenders (输出源)和Layouts(布局)。这里可简单理解为日志类别,日志要输出的地方和日志以何种形式输出。综合使用这三个组件可以轻松地记录信息的类型和级别,并可以在运 ...
public static void main(String args[]){ //生成一个JSONObject对象 String data = "{}"; JSONObject jsonObj = JSONObject.fromObject(data); //1.put 基本类型值 int i=0; for(i=0; i<5; i++){ jsonObj.put("id"+i, i); } System.out.println(jsonObj.toString()); ...
首先建立json.txt文件 { "programmers": [ { "firstName": "Brett", "lastName":"McLaughlin", "email": "brett@newInstance.com" }, { "firstName": "Jason", "lastName":"Hunter", "email": & ...
Global site tag (gtag.js) - Google Analytics