spring error

<aop:config>

<aop:pointcut id="allMethod"

expression="execution(* a.j.shop.service.impl.*.*(..))" />

<aop:advisor pointcut-ref="allMethod" advice-ref="txAdvice" />

</aop:config>

上面对,下面借 ***引用一定要在前***

错如下:

Description Resource Path Location Type
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘aop:pointcut‘. One of ‘{"http://www.springframework.org/schema/aop":advisor, "http://www.springframework.org/schema/aop":aspect}‘ is expected. applicationContext.xml /shop/src/main/resources line 37 XML Problem

<aop:config>

<aop:advisor pointcut-ref="allMethod" advice-ref="txAdvice" />

<aop:pointcut id="allMethod"

expression="execution(* a.j.shop.service.impl.*.*(..))" />

</aop:config>

时间: 2024-12-08 05:18:38

spring error的相关文章

spring Error creating bean with name &#39;xxxx&#39;

解决办法: 1.检查Service 扫描applicationContext包的配置web.xml 是否写错了 2.检查spring配置相关的配置,是否配置错误;尤其注意看一下spring自动扫描的包路径 3.检查spring mvc相关配置,是否配置错误 4.检查@Autowired,@Service,@Controller导包是否正确 5.检查QQ,会占用端口,电脑管家WiFi会生成intc6与zookeeper的ip冲突导致服务发布不到指定虚拟机ip,断掉wifi spring Error

Spring MVC异常处理实例

以下内容引用自http://wiki.jikexueyuan.com/project/spring/mvc-framework/spring-exception-handling-example.html: 例子: pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema

Log4j打印纯sql日志

web.xml-------------------------------------------------------------------<!-- 日志监听器 --> <context-param> <param-name>log4jConfigLocation</param-name> <param-value>classpath:log4j.properties</param-value> </context-pa

java:easyui(jQueryEasyUI,分页)

1.介绍: jQuery EasyUI是一组基于jQuery的UI插件集合体,而jQuery EasyUI的目标就是帮助web开发者更轻松的打造出功能丰富并且美观的UI界面.开发者不需要编写复杂的javascript,也不需要对css样式有深入的了解,开发者需要了解的只有一些简单的html标签. 2.特点:  1.基于jquery用户界面插件的集合 2.为一些当前用于交互的js应用提供必要的功能 3.EasyUI支持两种渲染方式分别为javascript方式(如:$('#p').panel({.

java:maven(maven-ssm(聚合,分包开发))

1.maven-ssm: maven-ssm_diy: 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="

java:Maven(Maven_ssm)

1.maven_ssm: pom.xml: <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://maven.apache.org/xsd/maven-4.0.0.xsd&qu

java:sso(单点登录(single sign on),jsp文件动静态导入方式,session跨域)

1.jsp文件导入: 2.session跨域: 3.sso(单点登录(single sign on): sso Maven Webapp: LoginController.java: package com.sso.demo.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans

mysql主从同步时遇到的问题

xinnian 浏览: 131159 次 性别: 来自: 北京 文章分类 全部博客 (51) Spring Error (0) Hibernate Error (0) Struts2 Error (0) Centos (12) 硬件 (1) Office (1) Centos Error (3) Mysql (1) Mysql Error (2) Oracle (10) HTML Error (1) Java Error (1) Linux (1) 建模 (1) Tomcat Error (1)

Spring mvc 中使用ftl引用共通文件出错 FreeMarker template error: Error reading included file &quot;/WEB-INF/ftl/common/errormessage.ftl&quot;

初次接触spring mvc,想做一个小的练习项目,结果在ftl文件中引用其它的共通ftl文件时出错. 目录结构如图所示,想在login.ftl中引用common下的errormessage.ftl <#include '/WEB-INF/ftl/common/errormessage.ftl' /> 结果画面报错: FreeMarker template error: Error reading included file "/WEB-INF/ftl/common/errormes