- 博客(13)
- 收藏
- 关注
原创 AJAX实现的局部刷新,虽然完成了局部刷新,但是页面跳到了顶部
今日份小发现:如题我有个a标签,功能是点击以后加载更多数据 href一开始写的是#接着执行onclick方法,执行ajax,返回数据添加到页面底部虽然实现了,但是页面跳到了最上面,测试发现原来是 href写了#号的原因解决方法:<a href="javascript:void(0)" onclick="xxxx()">xxx</a>...
2020-02-15 11:12:07
557
原创 hibernate的session的No Hibernate Session bound to thread
报错:org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one heressh框架(struts2,springmvc,hibernate)报错语句:Sessio...
2020-02-14 22:02:43
164
原创 tomcat下载安装
下载地址:https://tomcat.apache.org/官网左侧导航栏选择tomcat版本点击进入可以选择子版本core :第一个是解压版,最后一个是安装版解压版下载完在eclipse里配一下安装版直接双击安装...
2019-12-18 20:56:27
101
原创 myBatis 学习笔记
基础5步走创建一个用于查看控制台sql语句的.properties文件创建MyBatis核心配置文件创建映射文件mapper,用于对数据库进行操作创建一个普通的类定义一些属性创建一个测试类进行测试下方为一个简单的测试,数据库表为t_customer,id自增,username,jobs,phone1.log4j.properties的创建# Global logging confi...
2019-07-07 20:49:04
118
原创 Spring Bean的装配
Bean的装配可以理解为依赖关系注入,Bean的装配方式即Bean依赖注入的方式Bean的装配方式有3种,基于xml,基于注解Annotation,自动装配1.基于xml装配1.1设值注入Spring实例化Bean的过程中,首先调用Bean的默认构造方法来实例化Bean,然后通过反射的方式调用setter方法来注入属性值。因此,设值注入要求Bean必须满足以下两点Bean类必须提供一个默...
2019-07-07 00:23:19
127
原创 Spring Bean实例化3种方式
1.Bean的实例化(3种) 1.1构造器实例化 创建Bean1类,无需添加任何方法 通过Bean对应类中的无参构造方法实例化<bean id="xxx" class="带无参构造方法的xxx类"/> 1.2静态工厂实例化创建一个Bean2类,无需添加任何方法创建一个A类,并在A类中创建一个静态方法xxx来返回bean实例public ...
2019-07-06 18:34:54
96
原创 spring容器创建
Sring核心容器1.2.1 BeanFactory1.2.2 ApplicationContext(BeanFactory的子接口) java项目中实例化的两种方法 1.通过ClassPathXmlApplicationContext创建(从类路径中查找) ApplicationContext applicationCont...
2019-07-06 15:35:27
74
原创 解决spring事务启动错误can be found for element 'tx:advice'.
spring事务启动报错(eclipse,jdk1.8,spring4.3.6)Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:...
2019-07-05 17:17:04
316
原创 jdbc报错集合
The server time zone value '???ú±ê×??±??' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to ...
2019-07-04 23:47:31
157
原创 Spring启用注解扫描机制报错
spring启用注解扫描机制:加上<context:annotation-config />这句话报:The prefix "context" for element "context:annotation-config" is not bound.看看spring头部<beans>属性是否缺少: xmlns:context="http://www.sprin...
2019-07-01 15:36:59
582
原创 SSM框架学习笔记:创建spring容器出错
在进行创建spring容器的时候出现了这样的错误提示:错误原因:导包错误改为:import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;...
2019-06-30 16:19:20
131
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人