
Spring
bestlovejava
这个作者很懒,什么都没留下…
展开
-
SSM详细配置示例
SSM详细配置示例 一、pom.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:.原创 2020-07-21 23:02:10 · 382 阅读 · 0 评论 -
Spring项目常用的maven依赖
SSM项目中常用的maven依赖 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target>原创 2020-06-21 15:50:06 · 838 阅读 · 0 评论 -
Spring配置:自动扫描
Spring配置:自动扫描 一、在Spring的配置文件applicationContext.xml中,在其头部添加context命名空间: xmlns:context=“http://www.springframework.org/schema/context” xsi:schemaLocation=“http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-cont原创 2020-05-22 19:38:22 · 903 阅读 · 0 评论 -
对Spring的JDBC框架的再封装,提高效率
一、问题描述 问题描述: 在CRUD的项目中使用JdbcTemplate操作数据库时,在dao层我们会发现这样一个问题,代码量重复且繁杂,比如现在有如下类型参照表: 在对他进行操作时,会有以下的代码: 1.实体类(model层) /** * 损坏类型子参照表 */ @Component public class Damage_type_stable { private int damage_type_sid;//损坏类型子编号 private String damage_type_s原创 2020-06-01 17:54:39 · 241 阅读 · 0 评论