摘要: 事物管理使用配置文件写 事物依赖 写了后就可以不用在方法或类上写事物了 org.springframeworkspring-orm5.1.7RELEASE 编写配置文件applicationContext.xml<cxt:property-placeholder location="classpat 阅读全文
posted @ 2020-03-05 21:22 鱼3秒 阅读(173) 评论(0) 推荐(0) 编辑
摘要: jpa配置hibernate-configuration-3.0.dtd hibernate.cfg.xml@Entity(name)、@Id、@GeneratedValue死格式Configuration().configure()、SessionFactory SessioncreateQuer 阅读全文
posted @ 2020-03-05 18:44 鱼3秒 阅读(130) 评论(0) 推荐(0) 编辑
摘要: mybatis和spring一起使用要加依赖 org.mybatis mybatis-spring 2.0.2 org.springframework spring-jdbc 5.1.9RELEASE配置文件中配置SqlSessionFactoryBean1.<bean class="org.myb 阅读全文
posted @ 2020-03-05 15:17 鱼3秒 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 创建一个maven模块不要有父级依赖 org.mybatis mybatis 3.5.1 mysql mysql-connector-java 5.1.47 日志依赖 org.slf4j slf4j-log4j12 1.7.25 要加一个配置模板log4j.properties不用怎么改考一个 lo 阅读全文
posted @ 2020-03-05 14:59 鱼3秒 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 创建一个jdbc.properties文件url=jdbc:mysql://xxuser=root在spring-config中创建applicationContext.xml文件编写 <cxt:property-placeholder location="classpath:jdbc.proper 阅读全文
posted @ 2020-03-05 14:19 鱼3秒 阅读(201) 评论(0) 推荐(0) 编辑
摘要: HtmlHyperText Markup Language<html><head><title>标题</title></head><body></body></html> 基本标签<div>、<span>、<img align src=“” />选择器element(标签选择器)、class(利用空 阅读全文
posted @ 2020-03-05 13:19 鱼3秒 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 显示数据库:show databases; 创建数据库:create database mydb; 使用数据库:use mydb; 显示表:show tables; sub queriesexists ; not exists; in; not in;any/some、allgroup by 分组按 阅读全文
posted @ 2020-03-05 13:13 鱼3秒 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 概念ssh:linux远程访问授权:Struts spring hibernate类要加get和set:spring-webmvc spring-ioc hibernatessm/ssi:Struts spring mybatis3.0(ibatis2.0):spring-webmvc spring 阅读全文
posted @ 2020-03-05 13:10 鱼3秒 阅读(196) 评论(0) 推荐(0) 编辑