前不久在做一个项目的时候,我用到了mvc的webapi返回了一个大数据,结果报了500错误,如下图所示: Server Error in ‘/’ Application. Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. Des
package com.gaojinhua.android.activitymsg; import android.os.Parcel; import android.os.Parcelable; /** * Created by Gaojinhua on 2015/8/14. */ public class User implements Parcelable { private String name; private int age; public User(String name, in
1. BigDecimal类概述: 由于在运算的时候,float类型和double很容易丢失精度.所以为了能够精确的表达.计算浮点数,Java提供了BigDecimal. BigDecimal:不可变.任意精度的有符号十进制数. 2. BigDecimal构造方法 public BigDecimal(String val) 3. BigDecimal的使用(加减乘除) public BigDecimal add(BigDecimal augend):加 public BigDecimal sub
第6章 扩展类与继承 面向对象编程的一个重要特性: 允许基于已定义的类创建新的类; 6.1 使用已有的类 派生 derivation, 派生类 derived class, 直接子类 direct subclass; 基类 base class, 超类 super class; 1 2 3 4 5 6 class Dog { // Members of the Dog class... } class Spaniel extends Dog { // Members of the Spa
一.String类 想要了解一个类,最好的办法就是看这个类的实现源代码,来看一下String类的源码: public final class String implements java.io.Serializable, Comparable<String>, CharSequence { /** The value is used for character storage. */ private final char value[]; /** The offset is the first