java学习
lu__ya
这个作者很懒,什么都没留下…
展开
-
关于PraparedSatement的问题
package com.test4;import java.sql.*;public class TestJDBC {public static void main(String[] args) {// TODO Auto-generated method stubPreparedStatement ps = null;Connection ct = nul翻译 2016-05-25 09:24:24 · 202 阅读 · 0 评论 -
java_IO_文件的基本操作
首先明白:程序与流打交道,是以程序为中心IO流的分类:1、流向:输入流输出流2、数据:字节流:二进制,可以处理一切文件,包括纯文本、视频等 字符流:文本文件,只能处理文本3、功能: 节点流:包裹源头 处理流:增强功能,提供性能关于文件处理的字节流和字符流1、字节流:输入流:InputStr翻译 2017-12-28 21:24:12 · 126 阅读 · 0 评论 -
关于微信小程序后台常用的http请求类
import java.io.BufferedReader;import java.io.InputStream;import java.io.InputStreamReader;import java.io.OutputStream;import java.net.ConnectException;import java.net.URL;import javax.转载 2018-02-01 21:23:32 · 3328 阅读 · 0 评论 -
微信小程序之定时发送模板消息
参照:https://mp.weixin.qq.com/debug/wxadoc/dev/api/notice.html#%E6%A8%A1%E7%89%88%E6%B6%88%E6%81%AF%E7%AE%A1%E7%90%86步骤一:获取openID步骤二:获取模板ID步骤三:页面的 组件,属性report-submit为true时,可以声明为需发模板消息,此时点击按钮提原创 2018-02-01 21:37:39 · 14333 阅读 · 0 评论 -
maven的仓库配置
在settings.xml中使用阿里镜像配置如下在 alimaven central aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ 最好在里添加 jdk18 true 1.翻译 2018-01-27 19:35:05 · 195 阅读 · 0 评论 -
maven创建ssm
4.0.0 com.lucas SSMDemo 0.0.1-SNAPSHOT war 服务器启动失败产生A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Fai翻译 2018-01-27 21:47:31 · 244 阅读 · 0 评论 -
ssh 中web.xml中的配置
TestSSH index.html index.htm index.jsp default.html default.htm default.jsp contextConfigLocation classpath:applicationContext.xml org.原创 2018-01-28 21:22:48 · 288 阅读 · 0 评论 -
ssm的web.xml 配置信息
xmlns="http://java.sun.com/xml/ns/javaee"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"id="WebApp_ID" version="3.0" >contextConfig翻译 2018-01-28 21:46:53 · 630 阅读 · 0 评论 -
关于struts2 、spring 、hibernate 的配置文件xml 的头文件
spring 下载的地方http://repo.springsource.org/libs-release-local/org/springframework/spring/基于xml 文件的 基础头文件可以从这些地方找到spring 的applicationContext.xml 可以从docs——>spring-framework-reference——>htmlsingle原创 2018-01-03 12:00:42 · 427 阅读 · 0 评论 -
java _ _容器
java 中容器的基本介绍Collection ├List │├LinkedList │├ArrayList │└Vector │ └Stack └Set Map ├Hashtable ├HashMap └WeakHashMapCollection 的方法有: boolean isEmpty(); 如果此 collection翻译 2017-12-27 22:18:23 · 111 阅读 · 0 评论 -
ssh 整合的有可能出现的错误
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectwe原创 2017-12-19 10:15:19 · 160 阅读 · 0 评论 -
关于aop 切面
aop 进行日志编写时 所用jar 包 其中百度网盘链接 https://pan.baidu.com/s/1pLV52zh原创 2017-12-21 18:23:27 · 148 阅读 · 0 评论 -
关于spring 事务处理
applicationContext.xml 中代码是这样的 ,其中这是纯spring 管理事务xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springfr原创 2017-12-22 10:45:56 · 224 阅读 · 0 评论 -
关于spring 与Hibernate 结合使用的事务管理
applicationContext.xml 中是这样的 xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/原创 2017-12-22 11:07:43 · 545 阅读 · 0 评论 -
关于spring 结合不同的transaction-manager
操作数据库都需要DataSource。。。。。。在Spring 中使用Hibernate的SessionFactorySessionFactory的配置: 。。。。。。。映射文件 hibernate.dialect=org.hibernate.di原创 2017-12-22 11:15:49 · 281 阅读 · 0 评论 -
struts 中的上传文件
struts2 的单个文件上传翻译 2017-12-31 19:00:23 · 106 阅读 · 0 评论 -
struts2 的ajax 请求处理
struts2 中页面中利用ajax请求发送数据到action,action接收json数据,以及action发送json格式的数据到页面翻译 2017-12-31 21:25:37 · 415 阅读 · 0 评论 -
version 版本命名
version 版本命名翻译 2018-01-01 12:53:51 · 6457 阅读 · 0 评论 -
windows下的maven安装以及创建工程
maven的安装以及出现如下的错误:Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.4.1:runtime Cause: error in opening zip file pom.xml /Test11 line 1 Maven Project Build Lifecycle Mapping Problem翻译 2018-01-01 13:13:49 · 210 阅读 · 0 评论 -
ssm4.3版本配置dao层与mapper.xml不在同一个包中的处理方法
比如:dao的写法是package com.lucas.dao;import java.util.List;import org.springframework.stereotype.Repository;import com.lucas.bean.User;@Repositorypublic interface UserMapper { public List<User> getLi...原创 2018-03-01 23:08:02 · 2731 阅读 · 2 评论