码迷,mamicode.com
首页 >  
搜索关键字:spring配置文件    ( 786个结果
分布式项目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" ...
分类:编程语言   时间:2019-09-05 13:37:12    阅读次数:98
spring定时任务(scheduler)的串行、并行执行
对于spring的定时任务,最近有接触过一些,对于串行和并行也学习了一下,现在这里做下记录。 我是把每个定时任务分别写在不同的类中的,即一个类就是一个定时任务,然后在spring配置文件中进行配置,首先说串行任务的配置。如下: 1、串行 如上所示为两个串行的定时任务,分别为类className1中的 ...
分类:编程语言   时间:2019-09-02 12:07:19    阅读次数:89
ssm 整合(配置文件,简单测试)
SSM配置文件 Spring配置文件:applicationContext.xml 1.ioc组件扫描,扫描service 2.加载properties文件 3.配置数据源信息 4.配置sqlSessionFactory工厂 5.扫描mapper所在的包,为mapper创建实现类 6.声明式事务控制 ...
分类:其他好文   时间:2019-09-02 09:26:49    阅读次数:88
Spring使用注解进行事务管理
一、在spring配置文件中加入命名空间 二、spring配置文件 三、类或接口的顶部加注解 1.设置某个方法使用事务 在调用的方法上加上@Transactional注解(必须为public方法才行,不要捕捉异常,要让异常自动抛出,否则不能进行事务回滚。方法要写在服务层中在controller中无效 ...
分类:编程语言   时间:2019-08-20 18:48:13    阅读次数:78
Spring配置文件出错
问题描述: Element 'xxxxxxx' cannot have character [children],because the type's content type is element-only 解决方案: 配置文件中的beans节点下面只能是元素节点,不能有字符或文本存在。 比如多余 ...
分类:编程语言   时间:2019-08-14 15:15:12    阅读次数:72
事务的传播行为和隔离级别
事务使用步骤如下: 步骤一、在spring配置文件中引入<tx:>命名空间 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
分类:其他好文   时间:2019-08-13 21:04:45    阅读次数:90
Spring集成redis集群
Spring集成redis集群 有密码 Maven Spring配置文件 <bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig"> <!-- <property name="fairness" value="tru ...
分类:编程语言   时间:2019-08-11 00:55:13    阅读次数:107
Spring主配置文件(applicationContext.xml) 导入约束
eclipse导入Spring配置文件约束 Windows-Preference-XML-XMLCatalog 点 Add 选File System 下spring的解压包下的schema文件夹,选beans,然后选择spring对应的版本的xsd文件 选择指定xsd文件,再Key的路径后面添加"/ ...
分类:移动开发   时间:2019-08-08 14:46:32    阅读次数:140
0808 Spring 注解配置
summarize 注解配置将替换手动 Spring 注解配置 导包 配置约束 eclipse导入spring配置文件约束.可能你觉得这种配置文件网上一大堆,直接复制粘贴就搞定了,可是假如你去的是某些机密单位呢?所以多学点总归是好的!这篇文章是本人全部手工写出来的,没有盗用其他人的图片和文字信息等, ...
分类:编程语言   时间:2019-08-08 13:26:38    阅读次数:110
spring-cloud 注册中心配置
1 在Spring官方网站,生成代码 地址为:https://start.spring.io/ 注意事项:必须要勾上Eureka Server选项 2.在启动类Application上加 注解 @EnableEurekaServer 3. 创建配置文件application.properties 4 ...
分类:编程语言   时间:2019-08-02 20:26:30    阅读次数:137
786条   上一页 1 ... 6 7 8 9 10 ... 79 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!