随笔分类 -  Maven/Spring配置文件

在maven环境下创建Spring环境下的一些配置文件
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文

posted @ 2021-04-04 21:49 LebronD 阅读(172) 评论(0) 推荐(0) |

摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文

posted @ 2021-04-04 21:47 LebronD 阅读(78) 评论(0) 推荐(0) |

摘要:本文件的作用:1整合dao层,连接数据库 2设置数据库连接池3配置SqlSessionFactory对象4配置扫描Dao接口包,动态实现dao接口,注入到spring容器中 Ps:此文件可以替代mybatis-config.xml文件(Mybatis整合数据库的文件)<?xml version="1 阅读全文

posted @ 2021-04-04 21:45 LebronD 阅读(522) 评论(0) 推荐(0) |

摘要:此文件用于连接数据库映射sql对应的xml文件<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/ 阅读全文

posted @ 2021-04-04 21:35 LebronD 阅读(98) 评论(0) 推荐(0) |

摘要:注意修改用户名密码 mysql8的版本要注意配置时区 此文件放置连接数据库的相关参数 jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/taskmanage?useSSL=true&useUnicode=tr 阅读全文

posted @ 2021-04-04 21:29 LebronD 阅读(73) 评论(0) 推荐(0) |

摘要:注意修改子模块名称!!!!!!!!!!!!!!!!!!<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001 阅读全文

posted @ 2021-04-04 21:18 LebronD 阅读(122) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3