摘要: 转自https://www.cnblogs.com/tomxin7/p/9434085.html 业务介绍 最近用Spring Boot开发了一个翻译的小项目,但是服务器上还跑着其他项目,包括一个同样用Spring Boot开发的微信后端服务,本次业务需要在阿里云的Linux使用同一个Tomcat容 阅读全文
posted @ 2019-06-20 10:07 jason47 阅读(676) 评论(0) 推荐(0)
摘要: 1.创建user表 2.创建gateway表 3.创建user_gateway表 4.创建device表 5.创建gateway_device表 6.创建一个实体类 public class DeviceModule{ private Integer id; private String devic 阅读全文
posted @ 2019-06-19 16:29 jason47 阅读(10137) 评论(0) 推荐(0)
摘要: @Componentpublic class TestApplicationListener implements ApplicationListener<ContextRefreshedEvent>{ @Override public void onApplicationEvent(Context 阅读全文
posted @ 2019-05-27 18:06 jason47 阅读(2963) 评论(0) 推荐(0)
摘要: 报错: Consider defining a bean of type 'XXXXX' in your configuration. 因为在XxxxController.java中使用了: @Autowired private DeviceService deviceService; 需要在实现类 阅读全文
posted @ 2019-05-22 13:56 jason47 阅读(332) 评论(0) 推荐(0)
摘要: To fix issues like that, let Maven download the files again: That should try to download the file again and clean up any "residue" in your local repos 阅读全文
posted @ 2019-05-20 16:56 jason47 阅读(511) 评论(0) 推荐(0)
摘要: 两种解决方式: 方式一:(我是通过此方式解决的) 方式二: 另个一解决方案:“https://stackoverflow.com/questions/43314822/spring-eureka-dashboard-returns-xml-on-wildfly”,有个人的回答是: 于是,在appli 阅读全文
posted @ 2019-05-18 18:35 jason47 阅读(651) 评论(0) 推荐(1)
摘要: Spring Cloud版本演进情况如下: 版本名称 版本Finchley snapshot版Edgware snapshot版Dalston SR1 当前最新稳定版本Camden SR7 稳定版本Brixton SR7 稳定版本Angel SR6 稳定版本 Spring Cloud与Spring 阅读全文
posted @ 2019-05-18 13:21 jason47 阅读(583) 评论(0) 推荐(0)
摘要: 1. 在src/main/resources下新建param.properties 2. 在param.properties文件中添加 mqtt.host=tcp://127.0.0.1:1883 mqtt.username=xxxxxx mqtt.password=xxxxxxx 3. 在pom. 阅读全文
posted @ 2019-03-05 17:54 jason47 阅读(2884) 评论(0) 推荐(0)
摘要: 1.添加依赖,在pom.xml中添加 <!--mybatis核心包--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.3.0</version> </dependenc 阅读全文
posted @ 2019-03-01 11:55 jason47 阅读(5545) 评论(0) 推荐(0)
摘要: 1. 添加pom <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>com.tang.CSVUtils</ 阅读全文
posted @ 2019-02-11 11:55 jason47 阅读(4059) 评论(0) 推荐(0)