ssm配置文件

S32K324 Stack异常分析及解决方案 在项目开发过程中,在一次软件变更时,调整了task优先级之后导致应用层软件中的float数据经常性的变为NAN,导致应用层功能失效。本文记录下这个bug的分析及解决过程。该问题排查了好几天,最开始正向排查不出来,差点放弃了,ETAS OS也没有人支持,只能换一种思路,通过反向推,最终定位到问题,能完美解决,还是很欣慰的。遇到问题不可怕,Bug一直都会有,主要是在解决问题中的思路和方法,不断总结积累,总会越来越好的! 阅读详情

1. mybatis核心配置文件 mybatis-config.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
  PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
  "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
	<!-- 批量别名 -->
	<typeAliases>
		<package name="edu.fan.ssm.crm.pojo"/>
	</typeAliases>
</configuration>

2.springmvc管理mybatis数据库 applicationContext-mapper.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:mvc="http://www.springframework.org/schema/mvc"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop" 
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:task="http://www.springframework.org/schema/task"
	xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
						http://www.springframework.org/schema/beans/spring-beans-4.0.xsd 
						http://www.springframework.org/schema/mvc 
						http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd 
						http://www.springframework.org/schema/context 
						http://www.springframework.org/schema/context/spring-context-4.0.xsd 
						http://www.springframework.org/schema/aop 
						http://www.springframework.org/schema/aop/spring-aop-4.0.xsd 
						http://www.springframework.org/schema/tx 
						http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
						http://www.springframework.org/schema/task
				   		http://www.springframework.org/schema/task/spring-task-4.0.xsd
						http://code.alibabatech.com/schema/dubbo        
						http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
	<!--1. 连接外部数据库文件 -->
	<context:property-placeholder location="classpath:db.properties"/>
	
	<!--2. 管理数据源 -->
	<bean id="dataSource" class="com.alibaba.druid.pool.DruidAbstractDataSource">
		<property name="driverClassName" value="${jdbc.driver}"/>
		<property name="url" value="${jdbc.url}"/>
		<property name="username" value="${jdbc.username}"/>
		<property name="password" value="${jdbc.password}"/>
	</bean>
	<!-- 3.管理会话工厂 -->
	<bean id="sqlSesionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
		<!-- 3.1注入数据源 -->
		<property name="dataSource" ref="dataSource"/>
		<!-- 3.2加载mybatis的核心配置文件 -->
		<property name="configLocation" value="classpath:mybatis/mybatis-config.xml"/>
	</bean>
	
	<!-- 4.管理代理对象 -->
	<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
		<!-- 扫描包 -->
		<property name="basePackage" value="edu.fan.ssm.crm.mapper"/>
	</bean>
</beans>

3.springmvc事务管理器 applicationContext-transaction.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:mvc="http://www.springframework.org/schema/mvc"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop" 
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:task="http://www.springframework.org/schema/task"
	xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
						http://www.springframework.org/schema/beans/spring-beans-4.0.xsd 
						http://www.springframework.org/schema/mvc 
						http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd 
						http://www.springframework.org/schema/context 
						http://www.springframework.org/schema/context/spring-context-4.0.xsd 
						http://www.springframework.org/schema/aop 
						http://www.springframework.org/schema/aop/spring-aop-4.0.xsd 
						http://www.springframework.org/schema/tx 
						http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
						http://www.springframework.org/schema/task
				   		http://www.springframework.org/schema/task/spring-task-4.0.xsd
						http://code.alibabatech.com/schema/dubbo        
						http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
	<!-- spring管理事务 
		方式:
			1.注解
			2.配置文件:声明式管理事务:规范代码开发
	-->
	<!-- 1.配置事务管理器 -->
	<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<!-- 1.1注入数据源 -->
		<property name="dataSource" ref="dataSoure"/>
	</bean>
	
	<!-- 2.声明通知 -->
	<tx:advice id="txAdvice" transaction-manager="transactionManager">
		<tx:attributes>
			<tx:method name="update*" propagation="REQUIRED"/>
			<tx:method name="insert*" propagation="REQUIRED"/>
			<tx:method name="delete*" propagation="REQUIRED"/>
			<tx:method name="query*" propagation="REQUIRED"/>
			<tx:method name="update*" propagation="SUPPORTS" read-only="true"/>
		</tx:attributes>
	</tx:advice>
	<!-- 3.配置切面 -->
	<aop:config>
		<aop:advisor advice-ref="txAdvice" pointcut-ref="execution(* edu.fan.ssm.crm.service.*.*(..))"/>
	</aop:config>
</beans>

4.springmvc管理service applicationContext-service.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:mvc="http://www.springframework.org/schema/mvc"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop" 
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:task="http://www.springframework.org/schema/task"
	xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
						http://www.springframework.org/schema/beans/spring-beans-4.0.xsd 
						http://www.springframework.org/schema/mvc 
						http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd 
						http://www.springframework.org/schema/context 
						http://www.springframework.org/schema/context/spring-context-4.0.xsd 
						http://www.springframework.org/schema/aop 
						http://www.springframework.org/schema/aop/spring-aop-4.0.xsd 
						http://www.springframework.org/schema/tx 
						http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
						http://www.springframework.org/schema/task
				   		http://www.springframework.org/schema/task/spring-task-4.0.xsd
						http://code.alibabatech.com/schema/dubbo        
						http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
						
	<!-- spring管理service:扫描 @Service 注解的类 -->
	<context:component-scan base-package="edu.fan.ssm.crm.service"/>
</beans>

5.springmvc核心配置文件 springmvc.xml

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:aop="http://www.springframework.org/schema/aop" 
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:task="http://www.springframework.org/schema/task"
       xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
		                   http://www.springframework.org/schema/beans/spring-beans-4.0.xsd 
		                   http://www.springframework.org/schema/mvc 
		                   http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd 
		                   http://www.springframework.org/schema/context 
		                   http://www.springframework.org/schema/context/spring-context-4.0.xsd 
		                   http://www.springframework.org/schema/aop 
		                   http://www.springframework.org/schema/aop/spring-aop-4.0.xsd 
		                   http://www.springframework.org/schema/tx 
		                   http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
		                   http://www.springframework.org/schema/task
   		                   http://www.springframework.org/schema/task/spring-task-4.0.xsd
		                   http://code.alibabatech.com/schema/dubbo        
		                   http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
	
<!--1. 配置扫描器 -->
	<context:component-scan base-package="edu.fan.ssm.crm.controller"/>
	
	<!--2. 配置注解驱动,可以代替上面的两种加载方式 -->
	<mvc:annotation-driven />
	
	<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/WEB-INF/jsp/"/>
		<property name="suffix" value=".jsp"/>
	</bean>
	
	<!--3. 加载spring其他的配置文件 -->
	<import resource="classpath:spring/applicationContext-*.xml"/>	
</beans>

6.配置web,xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
		 xmlns="http://java.sun.com/xml/ns/javaee" 
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
                            http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
      id="WebApp_ID" version="2.5">
  <display-name>crm_ssm</display-name>
  <servlet>
    <servlet-name>crm_ssm</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>classpath:spring/springmvc.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>crm_ssm</servlet-name>
    <url-pattern>*.action</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>




SAP 清账凭证 完整生成逻辑(超详细原理 + 底层规则 + 分录逻辑 + 互清特殊规则) 【SAP清账凭证核心逻辑摘要】(149字) SAP清账凭证生成遵循两大类型:1)资金往来对冲型(如F-32/F-44互清),强制生成含完整借贷分录的独立凭证,通过AUGDT/AUGBL字段绑定未清项,典型场景如应收冲应付(借:应付账款 贷:应收账款);2)纯核销型(如F.13自动清账),仅标记行项目状态不产生实际分录。关键规则:①仅未清项管理科目可清账;②互清必须配置主数据关联;③差额清账自动补差(折扣/汇差);④原始凭证永不修改,仅更新BSIK/BSAD等表状态。清账凭证均保留可追溯性,支持FBRA重置还 阅读详情

相关推荐

Labview及NI-USRP驱动安装教程

软件下载 安装使用的LabVIEW2018及NI-USRP驱动程序已上传,下载地址: 天翼云盘链接 (访问码:oc33) 百度网盘链接 (提取码:88mi) (注:天翼云盘下载不限速) LabVIEW2018安装步骤 右键软件压缩包选择解压至LabVIEW2018 选中文件,鼠标右击选择以管理员身份打开2018LV-WinChn.exe文件。 点击确定。 点击Unzip解压。 点击确定。 点击下一步。 填写任意信息后,点击下一步。 点击下一步。 点击浏览更改安装路径建议安装到除C盘以

dadapongi6的博客 2万+

SSM框架配置文件详解

SSM框架配置文件详解 在SSM项目当中,所需要的配置文件总共有以下三个: ①web.xml ②applicationContext.xml ③springmvc.xml 以及两个properties文件jdbc.properties和log4j.properties 1.web.xml web.xml是ssm项目当中最重要的一个配置文件,当服务启动时会首先加载web.xml这个文件,里面包括了对前端控制器、字符编码的配置 案例: <?xml version="1.0" encoding

weixin_43521975的博客 5276

WinForm轻松打造AntDesign现代化工具栏

摘要: 本文介绍如何在WinForm中利用AntdUI库实现AntDesign风格工具栏,包括安装配置、动态生成按钮/下拉菜单、布局优化及主题美化。通过AntButton、AntDropdown等控件结合事件绑定,可快速构建支持图标、工具提示、权限控制的现代化工具栏,并解决常见图标加载、布局错乱问题。最后提供代码示例与响应式设计技巧,助你打造高效美观的WinForm界面。 (字数:150)

java专栏 1599

SSM的相关配置文件简介

SSM是三个主流技术框架的缩写,分别为Spring、S大型的pringMVC以及MyBatis,三者的协调运用成为了目前主流的Java EE框架,适用于搭建各种大型的企业级应用系统。(1)Spring下的配置文件:Spring-Config.xml 属于全局配置文件(配置文件名是自定义,作为Spring的核心配置文件,里面包括了:1-用Spring的数据源替换MyBatis的数据源,并且绑定mybatis配置文件以及注册mapper.xml映射器,即Spring整合MyBatis。2-注入sqlSess

Kristabo的博客 1927

手把手教你用scATAC-seq分析拟南芥根尖染色质可及性(附代码实战)

本文详细介绍了使用scATAC-seq技术分析拟南芥根尖染色质可及性的完整流程,涵盖从实验设计、数据质控、细胞分群到差异分析和多组学整合的实战步骤。通过具体的代码示例,帮助植物研究者掌握单细胞表观组学分析的核心方法,揭示细胞异质性和基因调控动态。

weixin_29291185的博客 268

Replay音频转换时samplerate缺失的解决方案指南

Replay音频转换时提示"No module named 'samplerate' This error is lazily reported, having originally occured in File"的解决方案

weixin_47445543的博客 2141

SSM框架18 最全SSM配置文件详解

SSM框架18 最全SSM配置文件详解

Wantfly9951的博客 1036

Python量化交易实战:从零搭建你的第一个多因子选股模型(附完整代码)

本文是一份详细的Python量化交易入门实战指南,手把手教你从零搭建第一个多因子选股模型。内容涵盖环境配置、数据获取、因子挖掘与有效性检验、多因子合成以及完整的策略回测与绩效评估,并附有可直接运行的完整代码,帮助初学者快速掌握量化交易的基本概念与实践流程。

resnet7explorer的博客 940

ssm配置文件回顾

spring-persist.xml主要作用(主要配置和业务逻辑有关的,数据源,mybatis整合,事务控制)配置自动扫描的包(service层)加载外部属性配置文件(jdbc.properties)2.1 配置数据源配置SqlsessionFactoryBean(整合mybatis)3.1指定mybatis全局配置文件3.2 指定Mapper配置文件位置3.3装配数据源(因为以往都是在mybatis中要配置的)配置扫描mapper接口配置事务管理器5.1 装配数据源。

qq_43842093的博客 381

深入解析机器人软件开发中的核心:状态机管理(FSM)—— 理论、实践与优化

状态机(FSM)是机器人软件开发中管理复杂行为逻辑的核心工具,广泛应用于导航、任务执行、故障处理等场景。本文系统探讨状态机的基础理论(定义、要素)、主流设计模式(经典FSM、分层状态机HSM、行为树BT),以及工业级实现方法(代码架构、线程安全、调试技巧)。通过移动机器人导航和机械臂任务执行的案例,分析分层状态机的实际应用,并总结常见陷阱(如状态爆炸、阻塞操作)与优化策略(异步化、事件过滤)。

郑伟强dev的专栏 292

DSP开发环境及工具之CCS

CCS( Code Composer Studio)是美国德州仪器(TI)公司的嵌入式处理器的开发环境,可以用于TI公司的各个系列处理器的软件开发和调试,如DSP,MCU,ARM等。CMD的专业名称叫链接器配置文件,是存放链接器的配置信息的,我们简称为命令文件。从其名称可以看出,该文件的作用是指明如何链接程序的。编辑完C语言设置,添加cmd文件之后,然后检查编译配置选项。主要的操作都是在这个窗口之间做相应的切换。

小柚子的博客 4313

SSM框架模板(高配:一次性配完所有需要的配置文件)

SSM框架模板(高配:一次性配完所有需要的配置文件)

qq_55928086的博客 1449

软件崩溃时Visual Studio中看不到有效的调用堆栈,使用Windbg动态调试去分析定位

当在Visual Studio中遇到软件崩溃且无法查看详细调用堆栈时,可以使用Windbg进行动态调试去分析定位问题。

dvlinker的技术专栏 1万+

ssm整合配置文件

在大多数情况下,Spring 配置文件和 Spring MVC 配置文件是分开的,并通过。

m0_71975922的博客 1628

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

SSM框架配置文件整理

在做SSM项目时,发现配置文件很多,而且代码日后可以复用(便于以后能够快速复制粘贴),所以记录下来,供以后开发和学习(偷懒)用。

静水流深,沧笙踏歌 5671

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

ssm整合的配置文件

ssm整合的配置文件 applicationContext.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:context="http://www.springframework.org/schema/contex

黄大大的博客 172

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

SSM配置文件整合流程

SSM配置文件整合流程 首先逆向工程生成Mapper以及pojo dao层整合 service层整合 表现层整合 web.xml配置 下面具体看每一层需要整合的东西 以下代码的头文件均已省略 Dao层整合 1、Mybatis核心配置文件 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration P...

时间ヾ永恒的博客 271

SSM配置文件

此内容为个人学习记录 SSM项目的基础配置文件(JDK建议用1.8) 首先 按照项目目录搭建项目然后再按照下方填入内容,这只是基础配置,随着功能的增加可以加入东西 spring.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst

zhangwenhaodalao的博客 936

SSM整合配置文件及解析

SSM简介:web.xmlSpring配置文件Mybatis配置文件mybatis的mapper文件SpringMVC配置文件 简介: 其实这些框架都是由spring通过对应的整合jar包进行整合的,将待整合的框架进行封装进一步简化其功能操作步骤,使其可以通过注解或者接口就可以实现原本复杂的操作。 这里就将mybatis的增删改查操作简化了很多,当使用接口式编程的时候就可以直接 @Autowired 比起之前的session,getmapper,commit等操作简化了很多。 web.xml 运行时爆

qq_43813373的博客 1187

SSM框架的几个重要配置文件

这几天一直在整合SSM框架,虽然网上有很多已经整合好的,但是对于里面的配置文件并没有进行过多的说明,很多人知其然不知其所以然,经过几天的搜索和整理,今天总算对其中的XML配置文件有了一定的了解,所以拿出来一起分享一下,希望有不足的地方大家批评指正~~~ 首先   这篇文章暂时只对框架中所要用到的配置文件进行解释说明,而且是针对注解形式的,框架运转的具体流程过两天再进行总结. spring+sp...

ghjzzhg的博客 6882

Spring整合SSM的配置文件详解

在整合三大框架SSM , 即 Spring 和 SpingMVC和Mybatis的时候,搭建项目最初需要先配置好配置文件. 有人在刚开始学习框架的时候会纠结项目搭建的顺序,因为频繁的报错提示是会很影响强迫症和编程心情的,这里分享我在构建项目时候的心得和配置文件的编写 首先你需要知道你的项目需要哪些结构,我们这里举一个基于Java的简单Web项目,实现最简单的功能,我需要Mybatis来进行持久...

weixin_44970764的博客 406

框架整合——SSM基于配置文件的整合

Spring、SpringMVC、MyBatis三个轻量级框架各自具有不同的功能。提供了 IoC(控制反转)和 AOP(面向切面编程)功能,帮助管理对象的生命周期和依赖关系。采用 MVC(模型-视图-控制器)设计模式,将请求处理、业务逻辑和视图渲染分离。它可以处理 HTTP 请求,支持 RESTful 风格的接口,适合构建 Web 应用。简化了数据库操作,使用 XML 或注解方式定义 SQL 语句,与 Java 对象进行映射。

hsfd_的博客 1028

SSM常用配置文件

SSM常用配置文件 因学习ssm框架时 需配置各种配置文件(配置地狱) 为了方便自己平时的使用 特此从各官网上找到各种配置文件的模板 总结成此博客 maven依赖 <dependencies> <!--Junit--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <vers

qs_266的博客 698

SSM——配置文件

SSM整合 完成后的项目结构如下: 首先加入以下配置文件: db.properites generatorConfig.xml mybatis.xml spring-mvc.xml spring-boot.xml db.properites 用来配置数据源信息,方便其他配置文件引用 内容如下: jdbc.url=jdbc:mysql://localhost:3306/ssmstoredb?...

weixin_41206459的博客 356

SSM整合相关配置文件

-Spring监听器,一旦服务器启动,servletContext创建就加载spring的配置文件,创建ioc容器,同时将ioc容器对象放入servletContext-->--取别名,用在将数据库字段与实体类中的属性一一对应,取别名以后,属性type、javatype、oftype就不用写全类名的路径了,只需写类名即可-->--配置mapper接口的扫描,将设置的包下面的所有的mapper接口通过SqlSession创建代理实现类对象,并将这些对象交给Ioc容器管理-->

m0_71975719的博客 458

SSM框架的整合的配置文件

SSM框架的整合一、环境的准备二、spring整合mybatis 的配置文件三、springmvc配置文件四、web文件的的配置 一、环境的准备 三大框架整合所需要的jar 二、spring整合mybatis 的配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframewor...

qq_43331747的博客 454
上一篇: SSM整合Crm
下一篇: Eclipse改变字体大小
Array先生
博客等级 码龄10年 1粉丝 8原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值