SpringBoot
SpringBoot 学习之路 从最基础的到不断深入
BusyMonkey
这个作者很懒,什么都没留下…
展开
-
springboot javamelody
1、依赖<dependency> <groupId>net.bull.javamelody</groupId> <artifactId>javamelody-core</artifactId> <version>1.73.1</version></dependency><dependency> <groupId>com.lowagie</gr原创 2020-11-13 14:24:22 · 220 阅读 · 0 评论 -
springboot mybatis和test
1、依赖 <!--web核心依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!--mysql数据库驱原创 2020-11-02 00:31:08 · 442 阅读 · 0 评论 -
springboot consul
1、安装consul下载地址2、启动consulconsul.exe agent -devhttp://localhost:85003、springboot pom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" ...原创 2020-02-11 00:59:17 · 347 阅读 · 0 评论 -
springboot 相关问题
maven不能下载ojdbc6的jar,需要手动安装mvn install:install-file -Dfile=d:/ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.4 -Dpackaging=jarjar中没有主清单属性【解决办法】<plugin> <gro...原创 2019-07-31 17:40:28 · 184 阅读 · 0 评论 -
springboot swagger
1、依赖<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.7.0</version></dependency><d...转载 2019-08-11 14:37:28 · 141 阅读 · 0 评论 -
springboot @webfilter FilterRegistrationBean「T」
https://blog.csdn.net/east123321/article/details/79694974https://blog.csdn.net/small_mouse0/article/details/778401301、@webfilter过滤指定url,在启动类加注解@ServletComponentScan2、Filter类:import java....转载 2018-09-02 21:20:02 · 3370 阅读 · 0 评论 -
springboot zookeeper dubbo
https://www.cnblogs.com/Alandre/p/6490142.html1、zookeeper 部署参考https://blog.csdn.net/Dopamy_BusyMonkey/article/details/819894232、依赖相同:<dependency> <groupId>io.dubbo.springboot<...转载 2018-08-26 17:25:35 · 222 阅读 · 0 评论 -
springboot rocketmq rocketmq-console
1、部署rocketmq namesrv、brokera、rocketmq下载地址:http://rocketmq.apache.org/release_notes/release-notes-4.2.0/b、配置JAVA_HOME、ROCKETMQ_HOMEc、cmd下运行mqnamesrvd、再开cmd下运行mqbroker -n 127.0.0.1:9876或者直接运行p...原创 2018-08-19 12:52:03 · 667 阅读 · 0 评论 -
Springboot https
1、生成keystore:参考https://blog.csdn.net/Dopamy_BusyMonkey/article/details/813686202、添加配置:#serverserver.port=8081server.ssl.key-store=code.keystoreserver.ssl.key-store-password=123456server.ssl.k...原创 2018-08-18 14:27:40 · 373 阅读 · 0 评论 -
SpringBoot Metrics
1、依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId></dependency>2、默认之开启healthy,info两...原创 2018-08-12 20:26:26 · 973 阅读 · 0 评论 -
Springboot Redis
1、依赖:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency>2、配置:#redissp...原创 2018-08-12 17:56:29 · 211 阅读 · 0 评论 -
Springboot logging 日志
protected static final Logger logger = LoggerFactory.getLogger(UserService.class);logger.warn("houjiaqi 已存在,数据将回滚");org.slf4j.Logger原创 2018-08-07 22:08:10 · 175 阅读 · 0 评论 -
Springboot druid
1、引用 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.0.26</version> </dependency> <dependency...原创 2018-08-08 23:19:06 · 207 阅读 · 0 评论 -
springboot pom.xml
<?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" xsi:schemaLocation="http://maven.apache.org/P...原创 2018-06-27 23:22:20 · 287 阅读 · 0 评论 -
SpringBoot 初学
1、eclipse 新建项目helloworld新建 Spring Starter Project,然后选择web项目,配置相关参数添加代码:import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;imp...原创 2018-06-27 23:31:01 · 305 阅读 · 0 评论 -
springboot 多配置和自定义路径
1、多配置文件管理1.1、优先级默认优先级:jar同级路径config目录配置文件 > jar同级路径配置文件 > classpath下config目录配置文件 > classpath下配置文件springboot默认配置中,配置文件为application.properties或者application.yml,配置文件的目录为config,这两个是在没有任何配置的...原创 2018-06-30 14:12:55 · 884 阅读 · 0 评论 -
springboot 与activemq通信
https://blog.csdn.net/liuchuanhong1/article/details/54603546/1、配置:#==================activemq Config Start==================spring.activemq.broker-url=tcp://localhost:61616spring.activemq.in...转载 2018-07-27 14:52:19 · 295 阅读 · 0 评论 -
SpringBoot Hibernate 增删改查
1、Entityimport javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax...原创 2018-07-29 22:17:21 · 1517 阅读 · 1 评论 -
Springboot MySQL 事务回滚
1、properties配置:spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect2、Service注解 @Transactional(rollbackOn = {IllegalArgumentException.class}) public void save...原创 2018-08-01 22:15:22 · 2444 阅读 · 0 评论