spring boot
snetlogon20
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
利用springboot2.0 Data 方式操作 Mongodb
mongodb安装参考:https://www.runoob.com/mongodb/mongodb-tutorial.html 启动mongodb的命令: 1.1 alias startmongo=‘nohup /usr/local/mongodb/bin/mongod --smallfiles >> /usr/local/mongodb/log/mongo.log 2>...原创 2019-10-13 20:40:03 · 157 阅读 · 0 评论 -
Springboot2.0调用scala程序
创建Springboot POM(csdn的编辑器有点怪,请读者自行设法拼接下) <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...原创 2019-10-05 13:57:58 · 689 阅读 · 0 评论 -
springboot2.0 + spark MLlib 必须使用的包
一、 基础包 spark-assembly-1.6.1-hadoop2.6.0.jar 二、spark mllib 包 至 https://www.apache.org/dyn/closer.lua/spark/spark-2.4.4下下载spark-2.4.4-bin-hadoop2.7.tgz 解压后至解压目录下的 spark-2.4.4-bin-hadoop2.7\jars, 将所有sp...原创 2019-10-04 16:58:07 · 830 阅读 · 0 评论 -
springboot2.0 通过Redis共享Session避坑指南
一、科学导入POM:必须导入以下的包,否则报错。其实整体很简单,就是不要少导包。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifact...原创 2019-09-29 10:35:34 · 1587 阅读 · 0 评论 -
SpringBoot集成MyBatis的分页插件PageHelper
很详细的一篇分页文章: https://www.cnblogs.com/1315925303zxz/p/7364552.html转载 2019-09-26 20:03:13 · 119 阅读 · 0 评论 -
Intellij静态目录的部署 (jquery/bootstrap/css/js)
Intellij静态目录的部署: 部署方式: 部署注意事项: a) 将目录复制进以上目录后, intellij不会马上生效,重启springboot 项目也没用。 b)必须使用Ctrl+Shift +F9强制编译后生效。 ...原创 2019-09-26 16:17:30 · 392 阅读 · 0 评论 -
spring boot,thymleaf 代码模型
<!DOCTYPE HTML> <link rel="stylesheet" type="text/css" media="all" href="../../css/gtvg.css" th:href="@{/css/gtvg.css}" xmlns:th="http://www.w3.org/1999/xhtml"/> <html xmlns:th="h...原创 2019-09-25 20:21:16 · 155 阅读 · 0 评论 -
springboot2.0, 使用RestController + RestClient 方式通过API 返回
目的:使用RestController + RestClient 方式通过API 返回。 一句话总结:RestController + RestCliet 方式相当于轻量级 WebService。 客户端技巧 通过单一的orderId获得返回 构造map参数,通过map对象获取 通过map对象获取,并获得HTTP报文头判断后有效返回 服务器端代码: package com.wi...原创 2019-09-24 10:57:36 · 613 阅读 · 0 评论 -
如何同时成为一个优秀的java spring boot2.0 和python的程序员?
别多想了。 麻烦你把 ## @键 先磨平了。原创 2019-09-24 09:38:35 · 145 阅读 · 0 评论 -
spring boot2.0 校验(@validated) + lombok的注解,彻底解放getter/setter
package com.winter.model; import lombok.Getter; import lombok.Setter; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.*; @Getter @Setter public class TestDoma...原创 2019-09-23 09:00:25 · 1509 阅读 · 0 评论 -
spring boot MVC 通过 MultipartFile file上传文件
一、 代码 //POST http://localhost:8080/test/tstMultipartFile?id=2&name=fff //postman 中不要增加 header //body: key=file value=/path/filename 即可 //获取header 并使用@ResponseBody 返回json ...原创 2019-09-22 17:06:47 · 164 阅读 · 0 评论 -
Spring boot 2.0 + Eureka Client 搭建
POM.xml < <properties> <java.version>1.8</java.version> <spring-cloud.version>Greenwich.SR1</spring-cloud.version> </properties> <dependencyManagement>...原创 2019-06-16 19:42:26 · 339 阅读 · 0 评论 -
Spring boot 2.0 + Eureka server 搭建 (Server)
1. pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.5.RELEASE</version> <...原创 2019-06-16 19:38:19 · 274 阅读 · 0 评论
分享