springboot
土豆哼小调
这个作者很懒,什么都没留下…
展开
-
spring boot yml基本配置
spring: activemq: broker-url: tcp://localhost:61616 in-memory: true pool.enabled: false packages: trust-all: true dubbo: application: name: s...原创 2018-06-05 11:08:15 · 476 阅读 · 0 评论 -
springboot启动类基本代码
import java.util.TimeZone;import javax.annotation.PostConstruct;import org.mybatis.spring.annotation.MapperScan;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoco...原创 2018-06-05 11:09:24 · 3460 阅读 · 0 评论 -
springboot pom master配置
<?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/POM原创 2018-06-05 11:10:39 · 343 阅读 · 0 评论 -
springboot pom配置
<?xml version="1.0"?><project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://ww...原创 2018-06-05 11:11:28 · 427 阅读 · 0 评论 -
Spring Rest 异步(Async)请求
1-介绍Servlet 3中的异步支持为在另一个线程中处理HTTP请求提供了可能性。有一个长时间运行的任务时,当另一个线程处理这个请求时,容器线程被释放,并且可以继续为其他请求服务。Spring框架提供的Controller中返回Callable 和 WebAsyncTask。 package test.service;import org.slf4j.Logger;impo...原创 2018-09-18 11:07:06 · 969 阅读 · 0 评论