Alex_TD

2020年2月21日

Idea 的Tomcat虚拟路径修改问题

摘要: windows 自带截图快捷键: win+shift+s Idea intellij 的Tomcat 配置的虚拟路径:Application context:/servletjsp_war 每一个项目都会在Idea的目录下生产对应的web项目目录在:修改path为空,然后把上面的虚拟路径改成/ 阅读全文

posted @ 2020-02-21 20:49 Alex_TD 阅读(432) 评论(0) 推荐(0) 编辑
Mybatis---事务(AOP注入事务)

摘要: 1.通过Spring 的声明式事务注入方式 : 需要XML引入tx标签 引入头部约束链接: spring所有的事务管理策略类都继承自org.springframework.transaction.PlatformTransactionManager接口 <?xml version="1.0" enc 阅读全文

posted @ 2020-02-21 15:27 Alex_TD 阅读(548) 评论(0) 推荐(0) 编辑
Spring-----Mybatis-通过Sqlsessionsupport

摘要: org.springframework.context.support.AbstractApplicationContext refresh警告: Exception encountered during context initialization - cancelling refresh att 阅读全文

posted @ 2020-02-21 14:16 Alex_TD 阅读(245) 评论(0) 推荐(0) 编辑
Spring ---Mabatis

摘要: 1。Mybatis 的环境搭建流程: 1.导入包jar 2.创建实体类 3.创建配置文件 4.写接口,接口映射器 5.测试 1.导入包:1.Junit.jar 2 mysql-connector-java.jar 3.mybatis.jar 4.spring-jdbc.jar 5.spring-we 阅读全文

posted @ 2020-02-21 14:04 Alex_TD 阅读(103) 评论(0) 推荐(0) 编辑