自定义博客皮肤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)
  • 收藏
  • 关注

原创 基于Spring Boot整合Mybatis框架实现网络通信的即时聊天系统

一、

2020-05-31 08:26:00 1375 2

原创 基于Litepal数据库开发的记事软件

小编将讲述如何开发一个基于Litepal数据库的日记APP,为什么选择Litepal数据库呢?日记APP不是很简单的嘛这个可以做出啥新的点呢?... 为了解决大家的这些疑惑,本文没有附上很详细的代码,主要体现的是整个开发流程以及提出开发过程中容易遇到的坑,有啥问题大家可以及时指正相互学习~~~(文末已附上源码供大家参考)一. 项目概述1.研究背景如今的人们工作忙碌学习繁重,往往每一天...

2020-03-26 21:44:45 657

原创 PAT 1016(排序)

1016Phone Bills(25分)A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of day whe...

2020-01-28 16:08:27 252

原创 PAT 1015(素数)

1015Reversible Primes(20分)Areversible primein any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime becau...

2020-01-23 16:37:16 359

原创 PAT 1014(复杂模拟)

1014Waiting in Line(30分)Suppose a bank hasNwindows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to ...

2020-01-22 19:58:45 589

原创 PAT 1013(图的遍历)

1013Battle Over Cities(25分)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We ...

2020-01-22 13:25:13 223

原创 PAT 1012(排序)

1012The Best Rank(25分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only:C- C Programming Language,M- Mathematics (Calculus or Li...

2020-01-21 00:36:45 222 2

原创 PAT 1011(查找元素)

1011World Cup Betting(20分)With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World ...

2020-01-20 18:35:43 226

原创 PAT 1010(二分法)

1010Radix(25分)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer isyes, if 6 is a decimal number and 110 is a binary number.Now for any pai...

2020-01-20 17:40:17 253

原创 PAT 1009(简单模拟)

1009Product of Polynomials(25分)This time, you are supposed to findA×BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines,...

2020-01-19 15:45:25 356

原创 PAT 1008(简单数学)

1008Elevator(20分)The highest building in our city has only one elevator. A request list is made up withNpositive numbers. The numbers denote at which floors the elevator will stop, in specified ...

2020-01-18 12:01:09 295

原创 PAT 1007(最大连续子序列和)

1007Maximum Subsequence Sum(25分)Given a sequence ofKintegers {N​1​​,N​2​​, ...,N​K​​}. A continuous subsequence is defined to be {N​i​​,N​i+1​​, ...,N​j​​} where1≤i≤j≤K. The Maximum Sub...

2020-01-17 23:53:48 282

原创 PAT 1006(查找元素)

1006Sign In and Sign Out(25分)At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the recor...

2020-01-17 19:29:38 284

原创 PAT 1005(字符串处理)

1005Spell It Right(20分)Given a non-negative integerN, your task is to compute the sum of all the digits ofN, and output every digit of the sum in English.Input Specification:Each input file ...

2020-01-17 16:33:59 207

原创 PAT 1004(树的遍历)

1004Counting Leaves(30分)A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one...

2020-01-17 10:49:13 533

原创 PAT 1003(最短路径)

1003Emergency(25分)As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams ...

2020-01-16 16:09:45 252

原创 PAT 1002(简单模拟)

1002A+B for Polynomials(25分)This time, you are supposed to findA+BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, an...

2020-01-15 17:44:51 323

原创 PAT 1001(字符串处理)

1001A+B Format(20分)Calculatea+band output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Spec...

2020-01-15 15:21:39 170

原创 获取百度地图申请密钥——debug版和release版SHA1

本来想运行百度地图的demo看看效果,但遇到了一些小问题——如何申请百度地图的apikey(获取这个是百度地图为了统计每天每个应用的定位次数防止恶意攻击 ),其他很多博客对于release版本的SHA1获取不够详细,这里小编将详细说说这个如何获取。1. 进入http://lbsyun.baidu.com/apiconsole/key/create,创建应用2. 基本信息填写3....

2019-05-04 17:05:56 715

原创 二分法核心与注意事项

一. 在计算 mid 时不能使用 mid = (l + h) / 2 这种方式因为 l + h 可能会导致加法溢出,应该使用 mid = l + (h - l) / 2二. 对 h 的赋值和循环条件有关当循环条件为 l <= h 时,h = mid - 1;当循环条件为 l < h 时,h = mid。解释如下:在循环条件为 l <= h 时,如果 h = m...

2019-02-13 13:04:31 612

原创 为什么Client测试显示的是no response

1.tomcat默认的端口是8080,如果自己改成了其他端口号在访问的时候也要改2.再检查自己的配置文件配置是否正确,从另一个项目直接copy过来的话一定要把名称全部改成自己这个项目的3.在注入时,检查注入路径是否正确,尤其是controller注入时"/exchange/"和"/exchange"是不一样的.可以通过查看日志看路径是否正确(是否多了/) ...

2018-11-01 21:20:24 6165

原创 当运行Tomcat出现1099端口问题怎么办

1. 在任务管理器中添加pid列2. 打开cmd命令行输入netstat -aon|findstr 1099(注意中间的空格不能省略)3. 找到相应的1099的pid列杀死进程为了不出现这样的问题要注意的地方   *不用了记得停止tomcat   *不要强制关机   *电脑没电之前关闭tomcat...

2018-05-27 13:00:43 3352

原创 Spring事务管理的总结

总结:Spring将事务管理分成两类:1. 编程式事务管理     *手动编写代码进行事务管理(很少使用)2. 声明式事务管理     *基于TransactionProxyFactoryBean的方式(很少使用)             *需要为每个进行事务的类,配置一个TransactionProxyFactoryBean进行增强     *基于AspectJ的XML方式(经常使用)     ...

2018-05-27 12:49:48 166

原创 声明式事务管理三:基于注解的配置

这种基于注解配置的声明式事务管理方法式很简单,很方便           (1) 像之前一样恢复到初始状态(2) 配置事务管理器(注入连接池)     (3) 开启注解事务     在哪个地方需要使用事务管理,就在哪个类上面添加这个注解(这里是在业务层)隔离级别、传播行为等信息(直接写在注解里面)          ...

2018-05-27 12:42:19 260

原创 声明式事务管理二:基于AspectJ的xml配置

下面讲述的是声明式事务管理的第二种方法,是基于AspectJ的xml配置的     (1) 引入AspectJ的java包(一种简化的操作)并copy到web-INF     (2) 配置事务管理器     (3) 配置事务的通知因为是自动代理所以不需要再进行注入            ...

2018-05-27 12:38:28 368

原创 声明式事务管理一:TransactionProxyFactoryBean

     下面是声明式事务管理的第一种方法使用原始的TransactionProxyFactoryBean,这种方法以后用的比较少,因为当事务管理比较复杂之后,相应的配置也会变得很复杂                (1)引入相应Spring AOP的java包(copy到web-inf的bin上)      (2)配置事务管理器     (3) 配置事务代理      在这里面的隔离级别不要设置...

2018-05-27 12:34:41 419

原创 编程式事务管理

事务管理的模板介绍这里小编就只介绍相关的配置操作,前面的Dao层、业务层、web-INF的相关代码已经给出大致的配置流程(1)配置事务管理器     (2)在业务层注入事务管理模板(因为是业务层需要进行事务管理)          ...

2018-05-27 12:19:45 184

原创 事务管理的环境搭建

小编在这里先介绍如何进行事务管理的环境搭建,后面讲继续介绍两种方式的事务管理方法的具体操作(如有错误还请大家指正哦)转账环境的搭建1.  创建表          2.  创建一个web项目(需要引入相应的java包和java配置文件)        (1) 数据库的驱动包和连接池相应的Java包     (2) Spring的test、jdbc、tx(事务管理)     (3) 相应的配置文件 ...

2018-05-27 12:14:14 217

原创 事务管理的基础介绍

事务的特性:原子性、一致性、隔离性、持久性      原子性:事务是一个不可分割的工作单位,事务中的操作要么都发生,要么都不发生      一致性:事务前后数据的完整性必须保持一致      隔离性:多个用户并发访问数据库时,一个用户的事务不能被其他用户的事务所干扰,多个并发事务之间的数据要相互隔离      持久性:一个事务一旦被提交,它对数据库中的数据改变就是永久性的,即使数据库发生故障也不应...

2018-05-27 11:49:00 331

原创 Servlet中的两种接收请求的方法

首先说一下,dopost和doget两种方法都是来接收用户请求的。但是还是有以下几种区别get:提交的数据大小有所限制; 请求通过url地址栏显示post:没有大小的限制; 通过http请求附件传送(以下举例在某页面点击提交后的请求传送过程)第一步    先在html写出submit的属性等,注意最好设置id,通过id才能来接收到用户的请求第二步    在s...

2018-05-12 22:06:27 5485

原创 Maven重点介绍

一.步骤    File->new->Project    建java web项目1.在JavaEE中建(必须手动导入Java包)                                2.用maven建(自动从网上导入)-> maven->Project SDK(默认)->Create from archetype->选择maven Webapp(长的...

2018-05-06 15:44:49 217

空空如也

空空如也

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

TA关注的人

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