自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 收藏
  • 关注

原创 【系统分析与设计】作业九

使用 ECB 实现 make reservation 用例的详细设计(包含用例简介,顺序图,类图)将逻辑设计类图映射到实际项目框架的包图。用树形结构表述实现的包和类...

2018-07-01 21:27:24 210

原创 使用JWT Token进行RestFul API权限验证

问题后端提供的RestFul API一般都需要进行权限验证,而Web框架一般采用Cookies+Session来进行认证。但RestFul API属于无状态协议,而在后台使用Session的话,由于Session本身需要服务端进行维持,这样就破坏了Rest的无状态性。解决方案抛弃Cookie+Session的认证架构,选用Token作为认证手段。在登录验证时,后台收集账号信息、IP、访...

2018-07-01 17:04:03 6205

原创 【Mybatis】解决一对多映射结果集Collection重复项出错问题

问题场景描述:现在有实体类Goods、Orders,分别表示商品与订单,是典型的多对多关系。 除了两个实体对应的表之外,另加关系表Goods_Orders,字段如下: 其中count表示某订单中某商品的数量。定义Orders的ResultMap如下: 现查询Order时,出现问题:返回的goodsCount列表应存储商品id对应的数量,但是当有count值相同时,返回的Lis...

2018-07-01 16:41:21 9837 3

原创 【系统分析与设计】作业七

1、描述软件架构与框架之间的区别与联系架构的具体含义: 架构是有关软件整体结构与组件的抽象描述,用于指导大型软件系统各个方面的设计。框架的具体含义: 是整个或者部分系统的可复用设计;表现为一组抽象构件及构件实例间交互的方式。结合架构补充,与业务无关的管理决策框架在没有加载业务数据之前,只能称之为框架。联系:架构的具体实现离不开框架,框架也需要依托架构来填充业务内容。区别:框架类...

2018-06-04 13:14:02 283

原创 【系统分析与设计】作业六

个人建模练习建模业务对象:Google翻译APP用例图: 【语音翻译业务】活动图: 领域模型图: APP状态图: 【请求在线翻译场景】系统顺序图: ...

2018-05-13 23:00:14 257

原创 【系统分析与设计】作业五

1)使用 UML State Model建模对象: 参考 Asg_RH 文档, 对 Reservation/Order 对象建模。 建模要求: 参考练习不能提供足够信息帮助你对订单对象建模,请参考现在 定旅馆 的旅游网站,尽可能分析围绕订单发生的各种情况,直到订单通过销售事件(柜台销售)结束订单。2)研究淘宝退货流程活动图,对退货业务对象状态建模...

2018-05-06 22:27:02 146

原创 【系统分析与设计】作业四

1. 阅读 Asg_RH 文档,按用例构建领域模型。按 Task2 要求,请使用工具 UMLet,截图格式务必是 png 并控制尺寸说明:请不要受 PCMEF 层次结构影响。你需要识别实体(E)和 中介实体(M,也称状态实体)在单页面应用(如 vue)中,E 一般与数据库构建有关, M 一般与 store 模式 有关在 java web 应用中,E 一般与数据库构建有关, M 一般与 sess

2018-04-29 22:54:31 204

原创 【系统分析与设计】作业三

1、 用例建模a. 阅读 Asg_RH 文档,绘制用例图。 按 Task1 要求,请使用工具 UMLet,截图格式务必是 png 并控制尺寸。b. 选择你熟悉的定旅馆在线服务系统(或移动 APP),如绘制用例图。并满足以下要求:· 对比 Asg_RH 用例图,请用色彩标注出创新用例或子用例· 尽可能识别外部系统,并用色彩标注新的外部系统和服务系统选择:去哪儿网酒店预...

2018-04-23 00:06:41 235

原创 基于Maven+SpringMVC的javaWeb项目配置详解

最近开始开发一个点餐系统Web应用,后端开发选用的是javaWeb的SSM开发框架,即Spring+SpringMVC+MyBatis,同时使用Maven作为包管理工具。框架并不熟悉,所以走的是一边学习一边开发的路线,故阶段性总结一下学习成果。开发软件以及工具(1)JDK:JDK8 (2)IDE:Intellij IDEA Professional (3)Web服务器:Tomcat 8.5 (

2018-04-15 22:06:57 2165

原创 javaWeb后台开发代码规范

1、命名规范基本原则: 1)采用英文全称进行命名; 2)保持各层级名称基本统一; 3)命名英文单词用全称,避免用简称。1.1 包命名规范包名称必须全部用小写。 命名方式:com.域名.项目名称.项目模块.系统分层 如:com.example.ordering.java.dao com.example.ordering.java.controller1.2 类命名规范类名以

2018-04-15 13:47:53 2181

原创 java笔记-关于继承、对象数组初始化、foreach循环

java初学,将遇到的问题记录一下。与继承有关的问题现有父类与子类:class Parent { void func() { System.out.println("father"); }}class Child extends Parent { void func() { System.out.println("child"); }

2018-03-18 11:29:15 1135

原创 【系统分析与设计】作业2

一、简答题1. 简述瀑布模型、增量模型、螺旋模型(含原型方法)的优缺点。瀑布模型 优点:可以保证软件产品的质量;可以保证设计缺陷提前被发现和解决;可以保证系统在整体上的充分把握,使系统具备良好的扩展性和可维护性等。 缺点:对于前期需求不明确的项目不友好;阶段性造成人力资源闲置等现象;开发周期较长;各阶段之间没有反馈等。增量模型 优点:切实的项目进展,有利于进度控制;降低失...

2018-03-16 13:38:04 257

原创 【系统分析与设计】作业1

一、简单题1、软件工程的定义软件工程 (Software Engineering) 是一门研究和应用如何以系统性的、规范化的、可定量的过程化方法去开发和维护软件,以及如何把经过时间考验而证明正确的管理技术和当前能够得到的最好的技术方法结合起来的学科。2、阅读经典名著“人月神话”等资料,解释 software crisis、COCOMO 模型。software crisis,...

2018-03-12 16:01:12 690

原创 逆序数【归并排序】

#include<iostream>using namespace std;const int LENGTH = 100;char temp[LENGTH];int mergesort(char* s, int first, int last) { if (first == last) return 0; int mid = (first + last) / 2; int ret = ...

2018-03-08 11:37:46 143

原创 【第十九周】210. Course Schedule II

原题There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pa

2018-01-08 18:04:59 131

原创 【第十八周】207. Course Schedule

原题There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pai

2018-01-08 17:52:26 244

原创 【第十七周】743. Network Delay Time

原题There are N network nodes, labelled 1 to N.Given times, a list of travel times as directed edges times[i] = (u, v, w), where u is the source node, v is the target node, and w is the time it takes for

2018-01-08 17:28:47 215

原创 【第十六周】714. Best Time to Buy and Sell Stock with Transaction Fee

原题Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer fee representing a transaction fee.You may complete as many t

2018-01-08 17:14:21 2316

原创 【第十五周】740. Delete and Earn

原题Given an array nums of integers, you can perform operations on the array.In each operation, you pick any nums[i] and delete it to earn nums[i] points. After, you must delete every element equal

2017-12-20 17:54:23 194

原创 【第十四周】718. Maximum Length of Repeated Subarray

原题Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays.Example 1:Input:A: [1,2,3,2,1]B: [3,2,1,4,7]Output: 3Explanation: The repeated subarray wi

2017-12-20 17:07:55 165

原创 【第十三周】698. Partition to K Equal Sum Subsets

原题Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums are all equal.Example 1:Input: nums = [4, 3, 2, 3, 5, 2,

2017-12-20 15:41:40 254

原创 【第十二周】688. Knight Probability in Chessboard

原题On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly K moves. The rows and columns are 0 indexed, so the top-left square is (0, 0), and the bottom-right

2017-12-19 20:30:09 444

原创 【第十一周】673. Number of Longest Increasing Subsequence

原题Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1:Input: [1,3,5,4,7]Output: 2Explanation: The two longest increasing subsequence are [1, 3, 4, 7] an

2017-12-19 19:27:55 153

原创 【第十周】650. 2 Keys Keyboard

原题Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step:1. Copy All: You can copy all the characters present on the notepad (par

2017-12-19 19:05:50 135

原创 【第九周】646. Maximum Length of Pair Chain

原题You are given n pairs of numbers. In every pair, the first number is always smaller than the second number.Now, we define a pair (c, d) can follow another pair (a, b) if and only if b < c. Chain of p

2017-12-18 14:44:21 122

原创 【第八周】647. Palindromic Substrings

原题:Given a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or end indexes are counted as different substrings even they consist

2017-10-29 23:50:46 180

原创 【第七周】402. Remove K Digits

原题:Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible.Note:The length of num is less than 10002 and will be ≥ k.

2017-10-22 01:47:54 153

原创 【第六周】684. Redundant Connection

原题:In this problem, a tree is an undirected graph that is connected and has no cycles.The given input is a graph that started as a tree with N nodes (with distinct values 1, 2, ..., N), with one additi

2017-10-16 00:33:34 822

原创 【第四周】310. Minimum Height Trees

原题:For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted trees, those with minimum height are called mi

2017-10-08 12:01:48 138

原创 【第三周】399. Evaluate Division

原题:Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, return the answers. If the answer

2017-09-24 19:30:46 270

原创 【第一周】215. Kth Largest Element in an Array

【第一周】215. Kth Largest Element in an Array原题:Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For example, Gi

2017-09-17 12:58:20 232

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除