- 博客(12)
- 收藏
- 关注
原创 自定义事务注解
自定义事务注解大纲:1.如何自定义注解2.如何封装一个事务注解步骤:1.spring.xml 开启注解 2.定义注解接口 3.写事务类 4.写切面类4.写切面类的步骤1.先通过反射拿到代理对象的方法代理对象的信息2.通过方法获取到这个方法是否加入了注解 (JpcTc jpcTc = objMethod.getDeclaredAnnotation(JpcTc.clas...
2019-12-23 11:13:43
642
原创 spring 手写实现声明式事务(原创)
步骤:1.spring.xml 开启注解2.定义注解接口3.写事务类4.写切面类4.写切面类的步骤{ 1.先通过反射拿到代理对象的方法代理对象的信息 2.通过方法获取到这个方法是否加入了注解 (JpcTc jpcTc = objMethod.getDeclaredAnnotation(JpcTc.class);) 3.如果有则开启事务 4.如果没有则不执行事务}1.写s...
2019-07-04 21:20:46
587
原创 Maven学习笔记
maven学习 笔记1.maven 下载以及解压使用下载maven 然后解压 配置环境变量1.创建环境变量 M2_HOME 里面写上maven 的目录2.在path里添加 %M2_HOME%\bin;3.保存 在cmd 中 打入 mvn -v成功完成 maven 安装和部署...
2018-10-11 10:05:48
181
转载 Spring的applicationContext.xml文件时出现The prefix "context" for element "context:component-scan" is not
转载 https://blog.youkuaiyun.com/qq_35155205/article/details/68484580spring启用注解扫描机制:加上这句话报:1.The prefix “context” for element “context:annotation-config” is not bound.看看spring头部属性是否缺少: xmlns:contex...
2018-09-14 15:56:02
476
转载 查看 linux tomcat 日志指令
转载 https://blog.youkuaiyun.com/zhangdaiscott/article/details/48623913
2018-09-10 16:05:22
1250
原创 Description Resource Path Location Type cvc-complex-type.2.4.c: The matching wildcard is strict,
xml 配置文件报错 以及解决办法xsi:schemaLocation 加上:http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd<beans xmlns="http://www.springframework.org/schema/bean...
2018-09-10 09:45:48
2817
1
转载 web.xml配置文件中async-supported报错的解决方案
转载 https://blog.youkuaiyun.com/zxz547388910/article/details/50780068 侵删
2018-09-07 14:55:41
1853
转载 (转)maven中的groupId和artifactId到底指的是什么?
转自 https://blog.youkuaiyun.com/snowin1994/article/details/53024871 侵删 groupid和artifactId被统称为“坐标”是为了保证项目唯一性而提出的,如果你要把你项目弄到maven本地仓库去,你想要找到你的项目就必须根据这两个id去查找。 groupId一般分为多个段,这里我只说两段,第一段为域,第二段为公司名称。域又分为or...
2018-09-06 11:47:07
225
原创 eclipse运行maven项目报错java.lang.ClassNotFoundException
转自 : http://www.bubuko.com/infodetail-2225054.html 今天部署 shiro框架一直报错 在eclipse中运行maven项目,出现异常——java.lang.ClassNotFoundException: org.apache.shiro.web.env.EnvironmentLoaderListener。如果确认shiro相关的依赖ja...
2018-09-03 17:08:44
1537
转载 maven建项目 会出现jsp报错
解决方法:在pom.xml配置文件中添加上javax.servlet的相关依赖: javax.servlet servlet-api 2.5 provided 依赖tomcat类库:项目右击—>build path —> configure build path — >libraries — > add libraries —> S...
2018-09-02 21:14:32
212
原创 SLF4J报错问题
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further...
2018-08-31 11:38:10
1707
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人