<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
分类:
其他好文 时间:
2020-03-13 14:33:18
阅读次数:
63
看第一个例子: 自定义一个listener: package com.test.common.listener; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import ...
分类:
编程语言 时间:
2020-03-11 23:22:37
阅读次数:
72
hibernate与spring整合 方式一:无障碍整合:带Hibernate配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xs ...
分类:
Web程序 时间:
2020-03-11 11:16:41
阅读次数:
88
今天在启动微服务项目的时候报错: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'budgetServiceImpl': Unsat ...
分类:
其他好文 时间:
2020-03-11 01:25:28
阅读次数:
85
ehcache缓存 1.缓存框架的作用:减轻服务器的压力。 2.缓存框架 的分类: ①单点缓存框架(ehcache、guacache、oscache),是以java语言写的,在单个jvm中缓存的框架。 ②分布式缓存框架redis 共享缓存框架。 跨语言。 3.缓存框架的基本流程 ①流程图如下 如果运 ...
分类:
系统相关 时间:
2020-03-10 22:07:40
阅读次数:
79
使用Maven构建项目,用pom.xml引入相应jar,配置以下文件 创建spring.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" x ...
分类:
编程语言 时间:
2020-03-10 14:27:06
阅读次数:
92
Spring依赖 <properties> <!--自定义版本号--> <spring-version>4.3.16.RELEASE</spring-version> </properties> <!--Spring依赖--> <dependency> <groupId>org.springfram ...
分类:
编程语言 时间:
2020-03-09 22:45:40
阅读次数:
59
Dubbo依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>dubbo</artifactId> <version>2.6.7</version> </dependency> Spring依赖 <properties> <!--自定 ...
分类:
其他好文 时间:
2020-03-09 22:42:56
阅读次数:
62
title: spring03 date: 2020 03 09 19:06:11 tags:自动装配(autowired) 本部分是自动装配的内容。 1、概述 摘抄自秦老师 自动装配是使用spring满足bean依赖的一种方法 spring会在应用上下文中为某个bean寻找其依赖的bean。 Sp ...
分类:
编程语言 时间:
2020-03-09 19:35:33
阅读次数:
71
在eclipse中开发网页时,经常会遇到写xml文件时第一行无缘无故报错。在最左面的行数上面报出一个小红叉, 点击查看错误信息: Referenced file contains errors (http://www.springframework.org/schema/beans......之类的 ...
分类:
其他好文 时间:
2020-03-08 15:48:12
阅读次数:
68