- 博客(17)
- 收藏
- 关注
原创 C#操作数据库
1. 添加命名空间System.Data.OracleClient引用2. using System.Data.OracleClient;3. 添加引用System.configuration4.在app.config中添加配置<?xml version="1.0" encoding="utf-8" ?><configuration> //连接数据库 ...
2019-10-28 16:13:23
134
原创 springAop详解
核心配置文件配置 --><?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http:/...
2019-09-26 21:40:13
161
原创 mybatis详解
jdbc.properties配置文件jdbc.uname=scottjdbc.password=rootjdbc.driver=oracle.jdbc.driver.OracleDriverjdbc.url=jdbc:oracle:thin:@localhost:1521:orclmybatis.xml核心配置文件<?xml version="1.0" encoding="U...
2019-09-26 20:45:08
185
原创 SpringMVC注解详情
本文包含springmvc注解的所有方式,包括存值,取值,返回json,以及.xml配置springmvc.xml配置<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/20...
2019-09-26 20:36:31
127
转载 mysql 查询当天、本周,本月,上一个月的数据
https://www.cnblogs.com/benefitworld/p/5832897.html
2019-09-10 10:44:48
91
转载 js对时间的操作
获取当前时间var myDate = new Date();获取时间中的年月日时分秒myDate.getYear(); // 获取当前年份(2位)myDate.getFullYear(); // 获取完整的年份(4位,1970-????)myDate.getMonth(); // 获取当前月份(0-11,0代表1月)myDate.getDate();...
2019-09-02 09:01:33
109
原创 Oracle数据库操作
查看表空间,名字,大小,类型,状态:SQL> select tablespace_name ,block_size,allocation_type,status from dba_tablespaces;创建表空间:SQL> create tablespace hnkj 2 datafile 'd:\db_file\hnkj.dbf' 3 size 10m 4 ...
2019-08-30 08:42:44
120
原创 jsp request请求各种地址/名称
项目名称:String path = request.getContextPath();path:/WebDemo完整的请求地址http
2019-08-18 22:18:01
650
原创 git操作
安装完成后第一步:1.设置git的姓名和邮箱:git config --global user.name"用户名"git config --global user.email"邮箱"2.查看设置git config --global user.namegit config --global user.emailgit init 将当前文件夹变成文件仓库git add 文件名称: ...
2019-08-15 09:57:39
102
原创 java 文件的上传与下载
serlevet 上传:@WebServlet("/uploadServlet")@MultipartConfig//将当前Servlet标记为支持上传的Servlet**必须加**public class uploadServlet extends HttpServlet { private static final long serialVersionUID = 1L; p...
2019-08-13 08:37:09
122
原创 查看tomcat端口占用/强制关闭端口占用
查看端口占用pid:netstat -ano|findstr 8088关闭查询到的pid即可:taskkill /pid 2472 -t -f
2019-08-10 13:13:52
399
原创 java根据key值读取配置文件value值
private static Properties props; static{ try { props = new Properties(); //"config.properties"放在classpath(类路径)下 InputStream in = 类名.class.getClassLoader().getResourceAsSt...
2019-08-07 08:37:34
944
原创 mongodb基本语法
创建数据库:use test展示数据库show dbs刚创建的数据库 test并不在数据库的列表中, 要显示它,我们需要向 runoob 数据库插入一些数据。 db.runoob.insert({"name":"菜鸟教程"})删除数据库首先切换到需要删除的数据库use test //存在test则切换到test数据库,不存在则创建test数据库然后执行删除数据库命令...
2019-08-01 22:17:48
105
原创 linux安装mysql
https://www.cnblogs.com/sunsky303/p/8274586.htmlhttps://blog.csdn.net/weixin_41245919/article/details/82778476源代码和安装包http://ftp.ntu.edu.tw/MySQL/Downloads/MySQL-5.6/mysql的官方yum厂库http://repo.mysql...
2019-07-31 21:13:28
103
原创 Linux上tomcat开机启动
开机自启动Tomcat:每次开机都要启动tomcat,网上看了好多都是用shell脚本来实现tomcat开机自启动,后来看到一种方法,直接修改系统文件来实现,已经实践过,方法有效。1.修改脚本文件rc.local:vim /etc/rc.d/rc.local这个脚本是使用者自定的开机启动程序,可以在里面添加想在系统启动之后执行的脚本或者脚本执行命令2.添加如下内容:export JA...
2019-07-31 17:30:03
314
1
原创 linux安装卸载 jdk
卸载JDK1、先输入java -version 查看是否安装了jdk2、如果安装了,检查下安装的路径 which java(查看JDK的安装路径)3、卸载 rm -rf JDK地址(卸载JDK) rm -rf /usr/java/jdk/jdk1.8.0_172/4、vim命令编辑文件profile vi /etc/profile删除配置的环境变量,至此JDK卸载完毕5、检查下自带...
2019-07-31 16:46:46
404
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人