
springboot
文章平均质量分 66
其实我不是个程序员
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot:aop
=================================================== application.properties 增加aop选项 =================================================== # AOP spring.aop.auto=true spring.aop.proxy-target-class=tru...原创 2017-06-30 13:48:20 · 84 阅读 · 0 评论 -
springboot:memcached
pom.xml ========================================== com.google.code.simple-spring-memcached spymemcached 2.8.4 ==========================...原创 2017-07-03 17:23:04 · 159 阅读 · 0 评论 -
springboot:server属性配置
server配置 ================================================ server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.excluded-user-agents指定不压缩的user-agent,多个以逗号分隔,默认值...原创 2017-07-04 10:05:13 · 190 阅读 · 0 评论 -
springboot:注解
@EnableAutoConfiguration注解 exclude 排除属性来禁用 @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}) =============================================== 这个注解告诉Spring Boot根据添加的jar依赖猜测你想如何配置...原创 2017-07-04 11:36:48 · 104 阅读 · 0 评论 -
springboot:热部署
pom.xml: ========================================== org.springframework.boot spring-boot-devtools true ...原创 2017-07-05 11:23:34 · 89 阅读 · 0 评论 -
springboot:task
TaskPool.java ============================================== @Configuration [color=red]@EnableAsync[/color] public class TaskPool { @Bean("TaskPool-1") public Executor myTaskAsyncPool(...原创 2017-07-05 12:11:07 · 127 阅读 · 0 评论 -
springboot:freemarker
pom.xml ============================================ org.springframework.boot spring-boot-starter-freemarker =========================================...原创 2017-07-05 17:33:57 · 94 阅读 · 0 评论 -
springboot:servlet
Application.java ================================================ @SpringBootApplication //支持servlet @ServletComponentScan public class Application { public static void main(String[] args)...原创 2017-07-06 10:17:28 · 107 阅读 · 0 评论 -
springboot:upload
FileUploadConfiguration.java =================================================== @Configuration public class FileUploadConfiguration { @Bean public MultipartConfigElement multipartConf...原创 2017-07-06 10:25:28 · 263 阅读 · 0 评论 -
springboot:shiro
[color=red] 第一次学习系统学习shiro 并将shiro集成到springboot中 参考了很多同学的文章 这里表示非常感谢 demo东拼西凑 基本想实现的东西都凑齐了 实现了 [/color] =========================================== 本demo是基于前后端分离的形式写的demo 基于api 没有页面 请不要思考页面在哪 本...原创 2017-07-13 15:52:42 · 146 阅读 · 0 评论 -
springboot:tomcat启动
1.在pom.xml里设置 war 2.移除tomcat插件 org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-tomcat ...原创 2017-07-20 15:02:08 · 265 阅读 · 0 评论 -
springboot:health
org.springframework.boot spring-boot-starter-actuator http://localhost:8080/health http://www.itnose.net/detail/6359648.html原创 2017-07-03 16:43:38 · 234 阅读 · 0 评论 -
springboot:mongodb
pom.xml ========================================= org.springframework.boot spring-boot-starter-data-mongodb =========================================...原创 2017-07-03 15:38:14 · 105 阅读 · 0 评论 -
springboot:@Configuration&@Bean
Configuration:减少xml中配置,可以生命一个配置类来对bean进行配置 ======================================================= SpringConfig.java ============================ package org.spring.springboot.configs; import o...原创 2017-06-30 13:49:57 · 176 阅读 · 0 评论 -
springboot:properties&profile&CommandLineRunner
pom.xml: ======================================= 4.0.0 springboot springboot-properties 0.0.1-SNAPSHOT springboot-properties :: Spring boot 配置文件 ...原创 2017-06-30 13:50:07 · 298 阅读 · 0 评论 -
springboot:interceptor
IncpConfig.java 增加拦截器config 继承WebMvcConfigurerAdapter ============================ package org.spring.springboot.configs; import org.spring.springboot.interceptors.MyIncp1; import org.spring.sp...原创 2017-06-30 14:04:16 · 135 阅读 · 0 评论 -
springboot:logback
==================================================== logback.xml resource下添加xml文件 ==================================================== movikr-svc-activity ...原创 2017-06-30 16:20:51 · 107 阅读 · 0 评论 -
springboot:mybatis&druid&pagehelper
================================================ pom.xml ================================================ org.springframework.boot spring-boot-starter-web ...原创 2017-07-01 13:35:56 · 144 阅读 · 0 评论 -
springboot:redis(jedis)
application.properties ========================================== redis.host=host redis.port=6379 redis.timeout=2000 redis.password=pwd #最大分配的对象数 redis.pool.maxTotal=1024 #最大能够保持idel状态的对象数 ...原创 2017-07-01 14:10:51 · 100 阅读 · 0 评论 -
springboot:amq
pom.xml ======================================================= org.springframework.boot spring-boot-starter-activemq ==========================================...原创 2017-07-01 22:20:39 · 221 阅读 · 0 评论 -
springboot:dubbo
[color=red]server:[/color] ======================================================= pom.xml ============================================= io.dubbo.springboot s...原创 2017-07-02 10:40:09 · 82 阅读 · 0 评论 -
springboot:ControllerAdvice
全局异常拦截 //@ControllerAdvice(annotations=TestController.class) //@ControllerAdvice(basePackages={"com.aaa","com.bbb"}) @ControllerAdvice public class GlobalExceptionHandler { @ExceptionHandle...原创 2017-07-02 14:09:15 · 190 阅读 · 0 评论 -
springboot:quartz集群
pom.xml ========================================= org.quartz-scheduler quartz org.springframework spring-context-support ...原创 2017-07-02 20:40:00 · 130 阅读 · 0 评论 -
springboot:condition
public class LinuxCondition implements Condition{ @Override public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { return context.getEnvironment().getP...原创 2017-07-26 11:10:22 · 118 阅读 · 0 评论