- 博客(6)
- 收藏
- 关注
原创 springboot的war包部署
一旦使用war包部署注意: 1. application.yml 中配置port context-path 失效 2. 访问时使用打成war包的名字和外部tomcat端口号进行访问项目1.在插件中指定入口类:<plugin> <groupId>org.springframework.boot</groupId> ...
2020-01-07 09:28:37 162
原创 两种测试(spring中junit+springboot)
1.spring@RunWith(SpringJUnit4ClassRunner.class) //开启spring的单元测试@ContextConfiguration("classpath:spring.xml") //spring.xml的加载,即开启工厂public class UserTest { @Autowired private PrivicesDao...
2020-01-06 09:46:58 214
原创 jsp头部万能与ajax当前日期的获取
1.头部<%@page isELIgnored="false" pageEncoding="UTF-8" contentType="text/html; utf-8" %><%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@taglib prefix="fn" uri="http:...
2020-01-06 09:42:46 252
原创 ssm依赖(mybatis与dbcp)
<!--单元测试--><dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope></d...
2019-12-19 22:28:25 525
原创 sm的maven依赖(mysql+druid)
org.springframework.boot spring-boot-starter-parent 1.5.7.RELEASE <!--spring的web启动器--><dependency> <groupId>org.springframework.boot</groupId> <...
2019-12-18 21:40:08 634
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人