摘要: x像远程服务器发送文件的方法 yum install lrzsz (通过此命令安装lrzsz) sz filename (从服务器发送文件到客户端) rz (从客户端上传文件到服务端) 阅读全文
posted @ 2017-08-17 16:17 喜欢就去做~ 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2.systemctl是 阅读全文
posted @ 2017-08-17 16:14 喜欢就去做~ 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 1.今天实验了mybatis的分页插件pagehelper的使用,感觉这个东西很方便, 公司项目居然连mybatis-config.xml文件都没写,直接写了个中间xml然后在spring中通过improt引入的 自己写了了mybatis-config.xml文件,中间xml文件已经配置了扫描包,所 阅读全文
posted @ 2017-06-02 18:17 喜欢就去做~ 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 1.今天在公司中做了一组同时有两个动作的操作,由于以前的项目在家里电脑里,配置记不住了, 在网上找了spring事务的配置 <!-- 配置事务管理器 --> <bean id="transactionManager" class="org.springframework.jdbc.datasourc 阅读全文
posted @ 2017-06-02 14:35 喜欢就去做~ 阅读(5960) 评论(0) 推荐(0) 编辑
摘要: 很久没用junit测试了,今天在spring框架下面使用junit测试发现怎么都不行 网上查了一些资料才发现我的项目里面少了一些jar包,现在将这个jar包信息放上去,以免以后又忘了 阅读全文
posted @ 2017-05-31 17:05 喜欢就去做~ 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1.maven如果没有看过系统的视频其实是不好理解的,但是当你看了maven的完整使用以后你就会觉得maven很好用 *一个完整的maven工程应该有多个工程组成 *创建一个父类工程,此工程为所有工程的父类工程,只解决jar包的版本控制,这个工程没有任何代码。 也就是只需要对maven的pom文件进 阅读全文
posted @ 2017-05-19 14:34 喜欢就去做~ 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: s首先要将读取文件的方法封装,只需要传入文件,用户名和密码即可登陆 package com.java.shiro.common; import org.apache.shiro.SecurityUtils;import org.apache.shiro.authc.AuthenticationExc 阅读全文
posted @ 2017-05-17 23:25 喜欢就去做~ 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 可以这样,文件上传到本地目录例如E\:/tomcat/upload/ web 访问这样: http://localhost:8080/project/upload/aa.jpg 在服务器中配置映射地址, 以tomcat为例子 在conf/server.xml中配置 <Host name="local 阅读全文
posted @ 2017-05-17 14:26 喜欢就去做~ 阅读(188) 评论(0) 推荐(0) 编辑
摘要: System.out.println("getContextPath:"+req.getContextPath()); System.out.println("getServletPath:"+req.getServletPath()); System.out.println("getRequest 阅读全文
posted @ 2017-05-16 22:44 喜欢就去做~ 阅读(4828) 评论(0) 推荐(0) 编辑
摘要: main方法代码 package com.java.shiro; import org.apache.shiro.SecurityUtils;import org.apache.shiro.authc.AuthenticationException;import org.apache.shiro.a 阅读全文
posted @ 2017-05-15 22:44 喜欢就去做~ 阅读(115) 评论(0) 推荐(0) 编辑