自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 资源 (6)
  • 收藏
  • 关注

原创 IO 流之配置文件 properties文件

package com.qiang.IO6;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.util.Properties;public class PropertiesTest { public static void main(String[] args) { Prop.

2021-09-20 16:47:44 144

原创 IO 之缓冲区

package com.qiang.IO2;import java.io.BufferedInputStream;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;public class BufferedInputStreamTest { public static void input(){ FileInputStream.

2021-09-20 16:46:33 244

原创 IO流之文件的写入

package com.qiang.IO4;import java.io.BufferedWriter;import java.io.FileWriter;import java.io.IOException;public class BufferedWriterTest { public static void main(String[] args) { output(); } public static void output(){ .

2021-09-20 16:44:03 166

原创 IO流之文件的读取

package com.qiang.IO4;import java.io.BufferedReader;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.IOException;public class BufferedReadTest { public static void main(String[] args) { input(); } pu.

2021-09-20 16:43:14 151

原创 IO流之文件的删除

package com.qiang.IO5;import java.io.File;public class DeleteFile { public static void main(String[] args) { File file = new File("D:/Ideal wrok space/aa"); delete(file); } public static void delete(File file){...

2021-09-20 16:42:19 1154

原创 IO流之文件的复制

package com.qiang.IO5;import java.io.*;public class FileCopy { public static void main(String[] args) { File source = new File("D:/projects/aa"); File target = new File("D:/Ideal wrok space/tt"); copy(source,target); .

2021-09-20 16:41:32 151

原创 IO之文件的创建

package com.qiang.IO5;import java.io.File;import java.io.IOException;public class FileTest { public static void main(String[] args) throws IOException { File file01 = new File("D:/Ideal wrok space/ab.txt"); //根据一个文件或文件的绝对路径创建一个file对象 .

2021-09-20 16:40:41 263

原创 IO之文件的拷贝

package com.qiang.IO;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;public class FileCopy { public static void main(String[] args) { copy("D:/Ideal wrok sp.

2021-09-19 22:12:46 118

原创 IO之文件输出流

package com.qiang.IO;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;public class FileOutputStreamTest { public static void main(String[] args) { output(); } public static void o.

2021-09-19 22:10:54 118

原创 IO 之文件输入流

package com.qiang.IO;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FilterInputStream;import java.io.IOException;public class FileInputStreamTest { public static void main(String[] args) { input();.

2021-09-19 22:09:59 82

原创 通过reflect 去调用方法

package com.qiang.reflect;import java.lang.reflect.Constructor;import java.lang.reflect.Method;/** * 通过反射调用方法 */public class Test06 { public static void main(String[] args) throws Exception{ //创建Class对象 Class<?> claxx = St.

2021-09-19 20:23:42 79

原创 通过reflect方法创建对象

package com.qiang.reflect;import java.lang.reflect.Constructor;import java.lang.reflect.InvocationTargetException;public class MyMain { public static void main(String[] args) throws IllegalAccessException, InstantiationException, NoSuchMethodExce.

2021-09-19 20:21:42 152

原创 通过reflect创建实例

package com.qiang.reflect;import java.lang.reflect.Constructor;import java.lang.reflect.InvocationTargetException;public class MyMain { public static void main(String[] args) throws IllegalAccessException, InstantiationException, NoSuchMethodExce.

2021-09-19 20:19:38 124

原创 reflect 一些用法

package com.qiang.reflect;import java.lang.reflect.Method;import java.lang.reflect.Modifier;public class Test4 { public static void main(String[] args) { Class claxx =String.class; System.out.println(claxx); St.

2021-09-19 19:07:02 106

原创 spring 的Application 的配置文件文件

<?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://www.springframework.org/schema/context" xmlns:tx="h.

2021-09-15 20:19:48 145

原创 Spring @Resource的配置

package com.qiang.ba06;import com.qiang.ba05.School;import org.springframework.beans.factory.annotation.Value;import org.springframework.stereotype.Component;import javax.annotation.Resource;/** * @Component:创建对象的,等同于<bean>的功能 属性: values .

2021-09-12 19:18:08 474

原创 Spring 注解的方式注入

ApplicationContext.xml 的配置文件<?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://www.springframework.org/sche

2021-09-12 18:59:37 216

原创 spring byName 和bType 注入方式

byName 的注入方式的配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/bea

2021-09-12 13:59:44 431

原创 Spring 构造注入

ApplicationContext.xml 配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/

2021-09-11 22:00:35 111

原创 Spring 引用注入方法

ApplicationContext.xml的配置<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/sc

2021-09-11 21:26:29 221

原创 spring 的 set 赋值

ApplicationContext.xml 的配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org

2021-09-11 20:57:10 374

原创 Spring 的bean 对象的设置最原始的方法

1、先是创建一个bean.xml的配置文件(注:bean可以设置为其他名字)<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springfra

2021-09-11 20:02:47 136

原创 mybatisde 配置文件

mybatis.xml<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"><configuration><!-- 从外面加载指定的配置文件--> ..

2021-09-08 22:00:47 78

原创 log4j.properties : 日志文件的配置

### 设置###log4j.rootLogger = debug,stdout,D,E### 输出信息到控制抬 ###log4j.appender.stdout = org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target = System.outlog4j.appender.stdout.layout = org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.C.

2021-09-08 21:54:58 218

原创 mysql 的一些基本语法

show database :显示有哪些数据库use +数据库 :切换数据库create database +数据库名称 :创建数据库(如果后面加上 character set 'utf8' 就是设置数据编码方式,不加默认就是utf8)show create database +数据库名称 :显示数据的信息select database(); :查询当前在使用哪个数据库create table 表名{ username varchar(10) // 长度是可以...

2021-09-08 21:51:56 64

原创 web 上传文件小案例

index.jsp<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "htt...

2021-08-24 12:15:25 121

原创 session的一小案例,模仿网购的购物车增加商品

yvhhg

2021-08-10 20:49:33 89

原创 使用JavaScript对cookie的操作

<!DOCTYPE html><html><head><meta charset="UTF-8" ><title>js操作cookie的演示</title><script type="text/javascript"> //js对cookie的操作,设置,删除,获取 function setCookie(c_name, c_value,c_expiredays) {//c_expiredays:...

2021-08-08 20:46:46 246

planegame.zip

飞机大战

2021-10-01

ch01-hello-spring1.rar

ch01-hello-spring1.rar

2021-09-12

MyBatisProject.rar

mybatis

2021-09-08

work space.zip

work space.zip

2021-09-01

workspace.zip

java学习心得

2021-08-08

mvcproject.zip

mvc设计的web网页,实现对MySQL的增删改查

2021-08-08

空空如也

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

TA关注的人

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