上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 32 下一页
摘要: 用户管理 mysql>use mysql; 查看 mysql> select host,user,password from user ; 创建 mysql> create user zx_root IDENTIFIED by 'xxxxx'; //identified by 会将纯文本密码加密作为 阅读全文
posted @ 2016-04-19 11:49 Struts-pring 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 开启mysql的远程访问权限 默认mysql的用户是没有远程访问的权限的,因此当程序跟数据库不在同一台服务器上时,我们需要开启mysql的远程访问权限。 主流的有两种方法,改表法和授权法。 相对而言,改表法比较容易一点,个人也是比较倾向于使用这种方法,因此,这里只贴出改表法 1、登陆mysql ? 阅读全文
posted @ 2016-04-19 11:31 Struts-pring 阅读(6721) 评论(1) 推荐(1) 编辑
摘要: log4j.rootLogger = debug , stdout , D , E log4j.appender.stdout = org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target = System.out log4j.app 阅读全文
posted @ 2016-03-28 17:34 Struts-pring 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 前段时间项目中用到了REST风格来开发程序,但是当用POST、PUT模式提交数据时,发现服务器端接受不到提交的数据(服务器端参数绑定没有加任何注解),查看了提交方式为application/json, 而且服务器端通过request.getReader() 打出的数据里确实存在浏览器提交的数据。为了 阅读全文
posted @ 2016-03-24 17:35 Struts-pring 阅读(396) 评论(0) 推荐(0) 编辑
摘要: BIT FLOAT CHAR TIMESTAMP OTHER UNDEFINEDTINYINT REAL VARCHAR BINARY BLOB NVARCHARSMALLINT DOUBLE LONGVARCHAR VARBINARY CLOB NCHARINTEGER NUMERIC DATE 阅读全文
posted @ 2016-03-22 13:46 Struts-pring 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 对应的中文: 任意公共方法的执行: execution(public * *(..)) 任何一个以“set”开始的方法的执行: execution(* set*(..)) AccountService 接口的任意方法的执行: execution(* com.xyz.service.AccountSe 阅读全文
posted @ 2016-03-18 09:20 Struts-pring 阅读(376) 评论(0) 推荐(0) 编辑
摘要: /** * 把数据对象转换成json字符串 DTO对象形如:{"id" : idValue, "name" : nameValue, ...} * 数组对象形如:[{}, {}, {}, ...] map对象形如:{key1 : {"id" : idValue, "name" : * nameVal 阅读全文
posted @ 2016-03-18 09:06 Struts-pring 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 如果我们往一个非空的目录下 clone git 项目,就会提示错误信息: fatal: destination path '.' already exists and is not an empty directory. 解决的办法是: 1. 进入非空目录,假设是 /workdir/proj1 2. 阅读全文
posted @ 2016-03-02 13:43 Struts-pring 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 最近项目中使用到了GIT,所以记录一下GIT中常用的命令。 GIT使用的客户端有Git Bash:http://code.google.com/p/msysgit/ 还有乌龟TortoiseGit:http://code.google.com/p/tortoisegit/ git status查看本 阅读全文
posted @ 2016-03-01 11:32 Struts-pring 阅读(117) 评论(0) 推荐(0) 编辑
摘要: http://www.yiibai.com/maven/ 阅读全文
posted @ 2016-02-29 18:10 Struts-pring 阅读(96) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 32 下一页