摘要: 1.导入热部署插件依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional></dependen 阅读全文
posted @ 2020-11-20 21:09 面包&#127838; 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 此电脑 》属性 》高级系统设置 》环境变量 1.新建系统变量 JAVA_HOME 》自己的jdk安装位置 2. 新建系统变量CLASSPATH 》 .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; 3.系统环境变量中找到PAHT 添加 以下内容: 阅读全文
posted @ 2020-11-08 13:03 面包&#127838; 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 需要引入依赖坐标 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>4.2.4.RELEASE</version></dependency><depend 阅读全文
posted @ 2020-02-15 13:38 面包&#127838; 阅读(1512) 评论(0) 推荐(0) 编辑
摘要: window --> preferences --> general --> workspace 阅读全文
posted @ 2020-01-31 21:03 面包&#127838; 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 在测试类中不能一级包名不能以java开头, 将包改为com.com.test就好了。 阅读全文
posted @ 2019-11-22 16:45 面包&#127838; 阅读(4559) 评论(0) 推荐(2) 编辑
摘要: <mvc:resources mapping="/js/**" location="/js/"/> 阅读全文
posted @ 2019-11-21 12:35 面包&#127838; 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1.直接将项目放在webapps目录下。 如果将项目直接打成WAR包,放在webapps目录下会自动解压 项目的文件夹名称就是项目的访问路径,也就是虚拟目录。 2.配置conf文件夹下的server.xml文件 在<Host>标签体中配置: <Context docBase=" " path=" " 阅读全文
posted @ 2019-11-19 17:32 面包&#127838; 阅读(103) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2019-11-19 11:56 面包&#127838; 阅读(314) 评论(0) 推荐(0) 编辑
摘要: package com.com.jdbctemplate; import com.com.domain.Account; import org.springframework.context.ApplicationContext; import org.springframework.context 阅读全文
posted @ 2019-11-18 17:11 面包&#127838; 阅读(149) 评论(0) 推荐(0) 编辑
摘要: package com.com.jdbctemplate; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicatio 阅读全文
posted @ 2019-11-18 16:27 面包&#127838; 阅读(222) 评论(0) 推荐(0) 编辑