上一页 1 ··· 69 70 71 72 73
摘要: 一、项目准备 1、新建一个vue的项目,确保能在浏览器正常访问。然后在项目的根目录下新建一个Dockerfile的文件,内容如下 注意:前提时项目中有dist文件夹。 FROM nginx COPY dist /usr/share/nginx/html/ COPY nginx.conf /etc/n 阅读全文
posted @ 2020-09-17 16:42 周文豪 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 一、创建一个Springboot项目 1、编写pom.xml <groupId>com.zwhxpp</groupId> <artifactId>springboot</artifactId> <version>1.0-snapshot</version> <packaging>war</packa 阅读全文
posted @ 2020-09-16 16:43 周文豪 阅读(314) 评论(0) 推荐(1) 编辑
摘要: 第一步:让启动类继承SpringBootServletInitializer,并重写configure方法,关键代码如下 @SpringBootApplication public class MySpringBootApplication extends SpringBootServletInit 阅读全文
posted @ 2020-09-15 18:41 周文豪 阅读(2154) 评论(0) 推荐(0) 编辑
摘要: 1、将JSON字符串转换成List集合 List<Cart> cartList_cookie=JSON.parseArray(cartListString,Cart.class); 2、将map集合转成JSON字符串 JSON.toJSONString(map) 3、将list集合转成JSON字符串 阅读全文
posted @ 2020-09-14 11:49 周文豪 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1.0、DateUitl(日期时间) 0)坐标 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.3.9</version> </dependency> 1)date方法获 阅读全文
posted @ 2020-09-14 09:50 周文豪 阅读(3487) 评论(0) 推荐(0) 编辑
上一页 1 ··· 69 70 71 72 73