- 博客(11)
- 收藏
- 关注
原创 开发遇到的问题三
这是同事WX直接发给我的json:{ "from": "ESB", "operate": "insert", "paramMap": { "orderNo": "0723001", "poOrderDate": "2020-07-23", "companyCode": "ASD01", "purOrgCode": "ASD01", "vendorCode": "V10089", "pur
2021-06-18 13:57:42
375
原创 开发中遇到的问题二
开发中遇到的问题二先上代码try { vendorCertExpiryNotiFileDto.setId(vendorCertExpiryNotiFileDto.getVendorId()); updateStatus(vendorCertExpiryNotiFileDto.getFileType(),vendorCertExpiryNotiFileDto.getVendorId()); saveFile(vendorCertExpiryNotiFileDto,vendorCertEx
2021-05-21 11:50:44
193
原创 哈哈,开发中遇到的一个小问题
今天测试其他代码时,发现一个自己之前写的格式化数字代码的bug;DecimalFormat df2 = new DecimalFormat("#.0000");之前是这样格式化数字的,今天突然发现如果是以0开头的小数,0会被格式化掉,像这样如果这样写DecimalFormat df2 = new DecimalFormat("0.0000");或者这样写DecimalFormat df2 = new DecimalFormat("#.####");都不会出现问题,唯独组合起来就会出现问
2021-04-08 17:11:33
124
原创 SSM框架整合
SSM框架整合步骤一.添加依赖SpringMVC相关依赖(Web层依赖)spring-webmvcjavax.servlet-apijstlSpring核心的依赖spring-context(添加过spring-webmvc依赖后。此依赖不需再添加)aspectjweaver(用到AOP、声明式事务需要添加)Mybatis的依赖mybatispagehelper (分页插件,如果你用到他的话)Spring和Mybatis整合的依赖mybatis-springspring-jdb
2020-09-01 21:36:49
146
原创 SpringMVC初使用
1.添加依赖<dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.0.RELEASE</version> </dependency>在web.xml中配置DispatcherServlet(一般叫做前端控制器或大管家)<servle
2020-09-01 20:42:55
132
原创 运用mybatis分页插件
1.导入分页插件所需依赖<dependencies> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.2.0</version> </dependen
2020-08-27 20:47:26
126
原创 MyBatis的核心配置文件
1.mybatis的核心配置文件<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"><configuration> <!--导入外部配置文件--> <
2020-08-27 20:38:07
258
原创 MyBatis逆向工程所需配置文件
1:首先需要一个generatorConfig.xml配置文件<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"&
2020-08-27 19:39:28
379
原创 模拟超市收银系统
目标模拟实现一个基于文本界面的《超市收银台系统》涉及到的知识循环、分支结构键盘输入数组的使用方法调用和返回值简单的屏幕格式控制保留指定位数的小数//shop类public class Shop {//门店类 private String shopName; private String shopTelephone; public Shop() { } public Shop(String shopName, String shopTelephone) { this.
2020-06-08 21:43:50
2353
1
原创 简易版五子棋---JavaSE
要求可以在控制台输出棋盘效果可以从控制台读取用户输入的落子位置当其中一方领先在同一直线上连续棋子达到4个时,可以判断胜负,并退出游戏Method类public class Method { //棋盘 public void Backgammon(String[][] checkerboard) { int count1 = 1; int count2 = 1; for (int i = 0; i < checkerboard.length; i++
2020-06-08 21:17:22
335
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅