1、maven依赖 <?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-instan ...
分类:
其他好文 时间:
2020-02-23 14:41:32
阅读次数:
74
问题: npm WARN stylus-loader@3.0.2 requires a peer of stylus@>=0.52.4 but none is installed. You must install peer dependencies yourself. 解决办法: 1、在packa ...
分类:
其他好文 时间:
2020-02-23 00:00:40
阅读次数:
120
MQTT协议因低延迟、效率高在工业物联网领域使用的频率特别高。前文介绍了如何用代码发送MQTT消息,本文在前文的基础上实现MQTT消息的订阅接收。操作步骤:引入相关的依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-inte
分类:
编程语言 时间:
2020-02-22 23:40:50
阅读次数:
612
SSM框架中的依赖 <dependencies> <!-- servlet依赖的jar包 --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>4.0 ...
分类:
其他好文 时间:
2020-02-22 09:53:36
阅读次数:
59
静态资源和模板引擎 静态资源默认存放在resources下的public, resources, static目录, 而且同名优先级比较resources static public 在静态资源目录中的index.html会成为首页 templates目录下的所有页面只能通过controller来跳 ...
分类:
其他好文 时间:
2020-02-21 09:57:08
阅读次数:
105
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manif ...
分类:
编程语言 时间:
2020-02-20 22:13:21
阅读次数:
67
前言 spring-boot 支持多种模版引擎包括: 1,FreeMarker 2,Groovy 3,Thymeleaf (Spring 官网使用这个) 4,Velocity 5,JSP (貌似Spring Boot官方不推荐,STS创建的项目会在src/main/resources 下有个temp ...
分类:
编程语言 时间:
2020-02-20 13:04:03
阅读次数:
93
pox.xml文件中 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> </dependency> ...
分类:
编程语言 时间:
2020-02-19 13:04:45
阅读次数:
62
添加红框部门,移除tomcat插件 <!-- 移除嵌入式tomcat插件 --> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</ ...
分类:
其他好文 时间:
2020-02-19 05:46:59
阅读次数:
98
<dependency> <groupId>com.hxyc</groupId> <artifactId>hxyc-common</artifactId> <version>0.0.1-RELEASE</version> <scope>system</scope> <systemPath>${pro ...
分类:
编程语言 时间:
2020-02-18 20:37:22
阅读次数:
71