- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 Maven打包jar到远程仓库
分享知识 传递快乐聚合包在 parent 项目中的 pom.xml 聚合<modules> <!-- 聚合模块 --> <module>common-core</module> <module>log-core</module></modules>settings.xml 配置配置私服的用户名密码<servers> <server>...
2021-01-28 18:01:48 1070
原创 logback日志打印配置
分享知识 传递快乐普通日志和异常日志分开保存。logback.xml<?xml version="1.0" encoding="UTF-8"?><configuration debug="false" scan="true" scanPeriod="1 seconds"> <!--读取配置中心的属性--> <property name="log.path" value="/data/logs/sync-center/sync-.
2021-01-28 11:48:02 373
原创 通用返回对象 - 返回指定类型数据
分享知识 传递快乐根据参数中指定的对象类型返回当前类性的数据。public class AppDemo { public static void main(String[] args) { OrderVO order = getOrderById("15065"); System.out.println(order.toString()); } public static OrderVO getOrderById(Stri..
2021-01-25 09:56:15 418
转载 java计算总页数
public static void main(String[] args) { int total = 11;//数据总量 int row = 3;//一页显示条数 int totalPages;//总页数 totalPages = total / row; if (total % row != 0){ totalPages ++; } System.out.println(totalPages);//此方法容易理解 System.out.println((total-1)..
2021-01-19 06:44:01 3592
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人