- 博客(13)
- 收藏
- 关注
原创 ssm pom文件依赖 web.xml配置
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&.
2022-01-13 17:16:06
227
原创 复杂格式的json转递
jsp中格式$(function () { //定义复杂类型Person var personComplex = { "id": 1001, "name":"张三", "address":{"province":"江苏省","city":"南京市","street":"赛虹桥街道"}, //ajax对象list最外层用[] "dogs":[{"stra
2022-01-08 11:27:09
256
原创 springmybatis事务相关的application.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:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.spring.
2022-01-06 12:25:51
247
原创 让src文件夹能读取xml文件
<build>标签里面添加<resources> <resource> <directory>${basedir}/src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource></resources>...
2022-01-04 16:31:32
155
原创 Mybatis整合Spring的ApplicationContext文件
<?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/beans http://www.sprin.
2022-01-04 16:20:37
502
原创 数据库实体类对应daoimpl,基础的增删改查。
数据库表名student,daoimpl类实现增删改查。public class StudentDaoImpl extends BaseDao implements StudentDao { /** * 查询全部学生信息 */ @Override public List<Student> selectAll() { List<Student> list = new ArrayList<>(); // 获取basedao里面通用的返回结果集
2021-12-08 17:34:06
519
原创 读取JDBC配置文件
用单例的方式,properties文件在src目录下。public class ConfigManager { private static ConfigManager configManager = null; private static Properties properties = null; // 私有的构造方法 private ConfigManager() { properties = new Properties(); // 要想 使用该对象操作文件(类型必须是后缀
2021-12-08 17:29:52
1041
原创 数据库sql的基础语句
1.建立student、grade表,并且两表之间有内外键关联。由于grade表是内外键的主键表,所以此处需先建立grade表保证表间的结构完整。#首先建立grade表CREATE TABLE IF NOT EXISTS `grade`(gradeid INT (11) NOT NULL PRIMARY KEY,gradename VARCHAR(50) NOT NULL)ENGINE =INNODB CHARSET=utf8 COLLATE=utf8_bin;#再建立student表
2021-12-02 16:42:09
813
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅