![](https://img-blog.csdnimg.cn/20190918140213434.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring Boot
文章平均质量分 82
Spring Boot相关的文章
请叫我菜鸡
这个作者很懒,什么都没留下…
展开
-
Docker开放2375端口被挖矿,docker镜像部署阿里云私有镜像库
因为之前组装了一台个人的服务器并且可以公网访问,然后为了方便就部署了docker并开放了2375端口进行外网打包,但是这个2375端口有漏洞经常会被大佬攻击,机器也被拿去挖矿,我就在想有没有什么办法可以在不开放docker远程连接端口的情况下能把自己的代码镜像部署上去。原创 2023-05-26 21:24:25 · 549 阅读 · 0 评论 -
xml报文转Java实体
因为需要对接一些比较老的系统接口,他们的请求方式不是JSON数据结构,一般会采用xml数据结构来作为数据的入参和返参。因为我们的系统是通过JSON数据进行交互的突然接入xml数据结构的会比较的麻烦,麻烦的体现在xml数据结构比较复杂,同时如果采用字符串拼接的话会比较的难以维护。通过JAXBContext来将xml字符串转为Java实体或者把Java实体转为xml字符串原创 2023-05-25 16:28:31 · 2230 阅读 · 0 评论 -
关于Nacos集群集成SpringBoot出现的after all servers nacos响应400的问题
com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after all servers([192.168.1.96:8849]) tried: ErrCode:400, ErrMsg:Whitelabel Error PageThis application has no explicit mapping for /error, so y原创 2022-10-25 18:34:29 · 1390 阅读 · 0 评论 -
spring boot基础知识 —— spring boot 集成 mybatis
码云地址:https://gitee.com/hjc2/springboot.git需要添加的依赖如下:<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>原创 2020-09-19 17:47:45 · 138 阅读 · 0 评论 -
spring boot基础知识 —— spring boot 集成 swagger2
码云地址:https://gitee.com/hjc2/springboot.git需要添加的依赖如下:<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>原创 2020-09-14 10:01:46 · 193 阅读 · 0 评论 -
spring boot基础知识 —— spring boot 集成 redis
码云地址:https://gitee.com/hjc2/springboot.git需要添加的依赖如下:<dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.47</version></dependency><dependency>原创 2020-09-12 16:43:07 · 227 阅读 · 0 评论 -
spring boot基础知识 —— springboot集成自动化测试selenium进行模拟登录,进行了单元测试(Java)
码云地址:https://gitee.com/hjc2/springboot.git需要下载一个谷歌浏览器对应的驱动,我的驱动如下地址下载:http://chromedriver.storage.googleapis.com/index.html注释很详细,直接上代码:package com.dream.bootselenium.test;import org.junit.AfterClass;import org.junit.BeforeClass;import org.juni原创 2020-09-12 15:58:19 · 1399 阅读 · 0 评论 -
spring boot集成Active MQ 报错Consider revisiting the entries above or defining a bean of type
如何在Windows环境安装和启动Active MQ请看上一篇博文:https://blog.csdn.net/h_j_c_123/article/details/108454607首先我们使用idea新建一个spring boot工程,不会新建工程的请看该篇博文:https://blog.csdn.net/h_j_c_123/article/details/93477170然后我们开始说明如何继承:首先添加依赖:<!--ActiveMq--><dependen原创 2020-09-08 10:38:03 · 14788 阅读 · 0 评论 -
idea springboot工程yml文件和properties文件不自动提示的问题
idea springboot工程yml文件和properties文件不自动提示的问题,先确认下这个文件夹是不是资源文件夹,如果不是把他变成资源文件夹原创 2020-04-24 18:21:38 · 1335 阅读 · 1 评论 -
springboot在html页面拼接路径
springboot在html页面拼接路径,在js中我们通常写ajax请求时会不断的进行跳转各个控制器的不同的请求,那么就会出现一个问题,访问的路径不对,经常出现少一个路径或者多一个路径的问题,那么springboot中就就可以这样解决,let ctxPath = /*[[@{/}]]*/''; 或者 let ctxPath = '[[@{/}]]' 但是第二种方式在idea中会报语法...原创 2020-04-24 14:42:39 · 647 阅读 · 0 评论 -
idea springboot woff/woff2/eot/ttf/svg等小图标不显示的问题
需要在pom文件的build中加入以下代码:<resources> <resource> <directory>${project.basedir}/src/main/resources</directory> <filtering>true</filtering> ...原创 2020-04-02 14:52:31 · 2464 阅读 · 3 评论 -
thymeleaf模板获取model和modelandview值的问题
var article_public_id = [[${article_public_id}]];原创 2019-09-12 11:22:31 · 5433 阅读 · 0 评论 -
springboot引入静态资源的问题
当我们通过window.localtion.href跳转请求Springboot时会出现静态资源路径出现错误的问题,比如说window.localtion.href = "a/b"springboot中是这样写的:@Controller@RequestMapping(value="/a")public class Controllers{@RequestMapping(va...原创 2019-09-12 11:14:23 · 492 阅读 · 0 评论 -
springboot的错误would dispatch back to the current handler URL [/addRegister] again. Check your ViewRes
javax.servlet.ServletException: Circular view path [addRegister]: would dispatch back to the current handler URL [/addRegister] again. Check your ViewResolver setup! (Hint: This may be the result of a...原创 2019-08-31 18:15:35 · 2129 阅读 · 1 评论 -
springboot使用freemarker模板
首先先下载依赖:<!--freeMarker模板--><!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-freemarker --><dependency> <groupId>org.springframework....原创 2019-08-30 15:58:55 · 221 阅读 · 0 评论 -
springboot使用thymeleaf语言
首先先加入maven依赖:<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf --><dependency> <groupId>org.springframework.boot</groupId> ...原创 2019-08-30 15:54:58 · 372 阅读 · 0 评论