上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 37 下一页
摘要: BigDecimal的运算——加减乘除 首先是bigdecimal的初始化 这里对比了两种形式, 第一种直接value写数字的值,第二种用string来表示 BigDecimal num1 = new BigDecimal(0.005); BigDecimal num2 = new BigDecim 阅读全文
posted @ 2021-03-19 16:48 浅笑19 阅读(181) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <title>测试页面</title> </head> <body> 学生列表:<br> <table border="1"> <tr> <th>序号</th> <th>学号</th> <th>姓名</th> <th>年龄</th> <th>家庭住址</th> </tr> 阅读全文
posted @ 2021-03-19 16:45 浅笑19 阅读(1380) 评论(0) 推荐(0) 编辑
摘要: # 是否允许HttpServletRequest属性覆盖(隐藏)控制器生成的同名模型属性。 spring.freemarker.allow-request-override=false # 是否允许HttpSession属性覆盖(隐藏)控制器生成的同名模型属性。 spring.freemarker. 阅读全文
posted @ 2021-03-19 16:43 浅笑19 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 最近在springboot项目中使用freemarker时,当页面里取某个空值进行判断,会报异常,异常信息全显示在页面上。通过一个配置,就可以全局解决了在application.properties的freemarker属性配置中加入: spring.freemarker.settings.clas 阅读全文
posted @ 2021-03-19 16:42 浅笑19 阅读(196) 评论(0) 推荐(0) 编辑
摘要: import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; import java.io.UnsupportedEncodingException; import java.util.Base64; public class Base6 阅读全文
posted @ 2021-03-19 16:41 浅笑19 阅读(131) 评论(0) 推荐(0) 编辑
摘要: public void testBigDecimal() { BigDecimal decimal = BigDecimal.ZERO; String x = "5"; for (int i = 0; i < 3; i++) { decimal.add(new BigDecimal(x)); } S 阅读全文
posted @ 2021-03-19 16:40 浅笑19 阅读(123) 评论(0) 推荐(0) 编辑
摘要: import java.util.Calendar; public class Date6 { public static void main(String[] args) { Calendar c = Calendar.getInstance(); int month=c.get(c.WEEK_O 阅读全文
posted @ 2021-03-16 12:56 浅笑19 阅读(1781) 评论(0) 推荐(0) 编辑
摘要: 选中module的pom.xml,右键,选择" add as maven project",idea会识别该pom的项目 阅读全文
posted @ 2021-03-10 09:12 浅笑19 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1. 在项目工程中新建lib 2. 通过maven命令完成jar安装 mvn install:install-file -Dfile=F:\demo\lib\taobao-sdk-java-1.0.jar # jar包的实际路径 -DgroupId=com.mydefine # pom 文件中填写的 阅读全文
posted @ 2021-03-08 16:49 浅笑19 阅读(328) 评论(0) 推荐(0) 编辑
摘要: import tk.mybatis.mapper.entity.Example; import com.github.pagehelper.PageHelper; ... @Override public List<Repayxxx> listRepaymentPlan(Integer start) 阅读全文
posted @ 2021-03-08 16:40 浅笑19 阅读(3777) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 37 下一页