摘要: 1.问题 内层方法上的事务提交会影响外层方法上的事务Rollback吗? 2.思考与解决 从运行结果看,Rollback生效,是外层事务Rollback同时会影响内层事务的提交吗?查询关于spring事务的资料,发现这个问题不是内外层事务提交回滚的问题,而是spring事务传播行为的问题。在这里我们 阅读全文
posted @ 2016-11-24 13:48 Mr.24点以后 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 出现的问题: 今天自己新建了一个maven webapp项目,准备自己看看springboot的东西,搭好的项目是这样的 一切都很正常啊,用run App的方式直接启动 成功啦,本应该到此结束,喝茶吃饭去,脑子一抽,不对,平时我们线上都是外部tomcat跑程序,要不我也用tomcat跑跑。tomca 阅读全文
posted @ 2016-10-31 16:56 Mr.24点以后 阅读(20375) 评论(0) 推荐(1) 编辑
摘要: 现象: 前几天跟前端联调,freemark报异常如下: For "#if" condition: Expected a boolean, but this has evaluated to a method+sequence (wrapper: f.e.b.SimpleMethodModel): = 阅读全文
posted @ 2016-08-21 11:25 Mr.24点以后 阅读(1307) 评论(0) 推荐(0) 编辑
摘要: 疑问1:为什么IBatis解决了大部分的sql注入?(实际上还有部分sql语句需要关心sql注入,比如like) 之前写Java web,一直使用IBatis,从来没有考虑过sql注入;最近写php(新手),突然遇到一大堆sql注入问题,如sql语句:SELECT * FROM message W... 阅读全文
posted @ 2015-11-23 13:56 Mr.24点以后 阅读(932) 评论(0) 推荐(0) 编辑
摘要: 一、问题现象 二、分析过程 三、解决问题 阅读全文
posted @ 2015-07-25 18:37 Mr.24点以后 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 一、开篇陈述 1.1 写文缘由 1.2 预备技能 二、基本概念和主要接口 2.1 基本概念 2.2 只要接口 三、编程式事务和声明式事务 3.1 编程式事务 3.2声明式事务 四、结篇总结 4.1 遇到问题 4.2 知识总结 阅读全文
posted @ 2015-07-25 17:37 Mr.24点以后 阅读(2279) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include <iostream>#include <math.h>using namespace std;#define INFINITY 100000000double e[7][6],w[7][6];//5个关键字 i从1--6 j从0--5 int root[6][6];//r表示ki。。kj序列的根void Optimal_BST (const double *p, const double *q,int n){ for (int i=1; i<=n+1; i++) { e[i][i-1] = 阅读全文
posted @ 2013-04-01 19:17 Mr.24点以后 阅读(394) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include <iostream>#include <math.h>using namespace std;int c[8][7],b[8][7];void LCS_length (const string& x, const string& y){ int m = x.length(); int n = y.length(); for (int i = 0; i <= m; i++) c[i][0] = 0; for (int j = 1; j <= n; j++) c[0][j 阅读全文
posted @ 2013-03-30 11:30 Mr.24点以后 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdafx.h" 2 #include <iostream> 3 #include <math.h> 4 5 using namespace std; 6 7 #define N 7 8 #define INFINITY 100000000; 9 10 int m[N-1][N-1];11 int s[N-1][N-1];12 void Matrix_chain_order (int p[])//特别容易搞错边界,这种写法不好13 {14 for (int i = 0; i < N - 1; i++)15 m[i][i 阅读全文
posted @ 2013-03-27 16:48 Mr.24点以后 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include <iostream>#include <math.h>using namespace std;#define N 6int f1[N] = {0},f2[N] = {0},f_final = 0;//f1数组记录装配线1中某装配站的最小时间,f_final记录完工总时间int l1[N-1] = {0},l2[N-1] = {0},l_final = 0;//l1数组记录装配线1中某装配站输入从1还是2中来,故值取1或者2,l_final记录最后从x1还是x2完成,每条线第一个站不记录void 阅读全文
posted @ 2013-03-27 15:27 Mr.24点以后 阅读(160) 评论(0) 推荐(0) 编辑