DDD-领域驱动设计之领域模型

  • Post author:
  • Post category:其他

DDD领域驱动设计基本理论知识总结 Posted on 2011-10-10 01:01 netfocus 阅读( 120434 ) 评论( 82 ) 编辑 收藏 领域驱动设计之领域模型 加一个导航,关于如何设计聚合的详细思考,见 这篇 文章。 2004年Eric Evans 发表Domain-Driven Design –Tackling Complexity in the Heart of S…

继续阅读 DDD-领域驱动设计之领域模型

二分法查找—-leetcode704

  • Post author:
  • Post category:其他

class Solution { public int search(int[] nums, int target) { if(nums.length==0 ||target<nums[0] || target > nums[nums.length-1]){ return -1; } int begin=0; int end=nums.length-1; int mid = 0; wh…

继续阅读 二分法查找—-leetcode704

PAT甲级1079

  • Post author:
  • Post category:其他

1079. Total Sales of Supply Chain (25) 时间限制 250 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyo…

继续阅读 PAT甲级1079

ServletContext.getRealPath() 的输入参数要以”/”开头

  • Post author:
  • Post category:其他

ServletContext.getRealPath() 是从当前servlet 在tomcat 中的存放文件夹开始计算起的 比如,有个servlet 叫 UploadServlet,它部署在tomcat 下面以后的绝对路径如下: "C:\Program Files\apache-tomcat-8.0.3\webapps\UploadServlet" 那么, ServletContext.getR…

继续阅读 ServletContext.getRealPath() 的输入参数要以”/”开头

google编码规范之htmlcssguide.html其一

  • Post author:
  • Post category:其他

一.背景 This document defines formatting and style rules for HTML and CSS. It aims at improving collaboration, code quality, and enabling supporting infrastructure. It applies to raw, working files that …

继续阅读 google编码规范之htmlcssguide.html其一

eclipse搭建springboot开发环境

  • Post author:
  • Post category:其他

目前使用springboot框架的IT项目越来越多,在此总结一下用eclipse搭建springboot开发环境的步骤: 1、下载maven 官网: http://maven.apache.org/download.cgi 2、maven配置过程 (1)解压下载的maven文件,然后打开eclipse,window——preferences——maven——installations (2)点击上…

继续阅读 eclipse搭建springboot开发环境

android中Cleartext HTTP错误解决方案

  • Post author:
  • Post category:其他

背景 在android中通过调用HttpURLConnection 进行http网络通信过程中,发现在不同系统有些系统是可以正常通信,有些系统无法正常通信。 下面就是代码片段 HttpURLConnection connection = (HttpURLConnection) new URL(filePath).openConnection(); connection.setRequestMeth…

继续阅读 android中Cleartext HTTP错误解决方案

静态数组名与动态数组名区别分析(包括C/C++中的数据访问方式)

  • Post author:
  • Post category:其他

静态数组名与动态数组名的区别分析 前言 使用RTTI测试 目前的结论 为什么都能获得首元素 进一步结论 为什么指针可以执行数组的下标运算? 下标运算(又称数据访问方式) 指针算术 前言 今天做题发现了以前常常发现却没有试图去分析了解的东西,就是静态数组名和动态数组名有什么区别吗? 如下: int * x=new int[20]; memset(x,0,sizeof(*x)*20); //如果用静态…

继续阅读 静态数组名与动态数组名区别分析(包括C/C++中的数据访问方式)

OpenCV实践之路——行人检测

  • Post author:
  • Post category:其他

参考: http://blog.csdn.net/xingchenbingbuyu/article/details/51255253 参考: http://blog.csdn.net/garfielder007/article/details/50441048 行人检测是视觉领域很热也很有用的一个主题,特别是在无人驾驶中,行人检测的重要性不言而喻。 在之前进行了人脸检测之后,行人检测就显得简单多了…

继续阅读 OpenCV实践之路——行人检测

macOS环境 查看端口、进程号、进程名

  • Post author:
  • Post category:其他

记录一些mac下的常用命令: 1、查看进程号 ps -ef | grep 进程名 2、查看端口被哪个进程监听 sudo lsof -i :端口 3、查看进程监听的端口 sudo lsof -nP -p 进程号 | grep LISTEN sudo lsof -nP | grep LISTEN | grep 进程号 4、查看监听端口的进程 sudo lsof -nP | grep LISTEN | …

继续阅读 macOS环境 查看端口、进程号、进程名