
springboot
文章平均质量分 66
其实我不是个程序员
这个作者很懒,什么都没留下…
展开
-
springboot:aop
===================================================application.properties 增加aop选项===================================================# AOPspring.aop.auto=truespring.aop.proxy-target-class=tru...原创 2017-06-30 13:48:20 · 82 阅读 · 0 评论 -
springboot:memcached
pom.xml========================================== com.google.code.simple-spring-memcached spymemcached 2.8.4 ==========================...原创 2017-07-03 17:23:04 · 152 阅读 · 0 评论 -
springboot:server属性配置
server配置================================================server.address指定server绑定的地址server.compression.enabled是否开启压缩,默认为false.server.compression.excluded-user-agents指定不压缩的user-agent,多个以逗号分隔,默认值...原创 2017-07-04 10:05:13 · 183 阅读 · 0 评论 -
springboot:注解
@EnableAutoConfiguration注解exclude 排除属性来禁用@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})===============================================这个注解告诉Spring Boot根据添加的jar依赖猜测你想如何配置...原创 2017-07-04 11:36:48 · 99 阅读 · 0 评论 -
springboot:热部署
pom.xml:========================================== org.springframework.boot spring-boot-devtools true ...原创 2017-07-05 11:23:34 · 87 阅读 · 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 · 120 阅读 · 0 评论 -
springboot:freemarker
pom.xml============================================ org.springframework.boot spring-boot-starter-freemarker =========================================...原创 2017-07-05 17:33:57 · 90 阅读 · 0 评论 -
springboot:servlet
Application.java================================================@SpringBootApplication//支持servlet@ServletComponentScanpublic class Application { public static void main(String[] args)...原创 2017-07-06 10:17:28 · 102 阅读 · 0 评论 -
springboot:upload
FileUploadConfiguration.java=================================================== @Configurationpublic class FileUploadConfiguration { @Bean public MultipartConfigElement multipartConf...原创 2017-07-06 10:25:28 · 256 阅读 · 0 评论 -
springboot:shiro
[color=red]第一次学习系统学习shiro 并将shiro集成到springboot中参考了很多同学的文章 这里表示非常感谢demo东拼西凑 基本想实现的东西都凑齐了 实现了[/color]===========================================本demo是基于前后端分离的形式写的demo 基于api 没有页面 请不要思考页面在哪本...原创 2017-07-13 15:52:42 · 142 阅读 · 0 评论 -
springboot:tomcat启动
1.在pom.xml里设置 war2.移除tomcat插件 org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-tomcat ...原创 2017-07-20 15:02:08 · 259 阅读 · 0 评论 -
springboot:health
org.springframework.boot spring-boot-starter-actuator http://localhost:8080/healthhttp://www.itnose.net/detail/6359648.html原创 2017-07-03 16:43:38 · 233 阅读 · 0 评论 -
springboot:mongodb
pom.xml========================================= org.springframework.boot spring-boot-starter-data-mongodb =========================================...原创 2017-07-03 15:38:14 · 97 阅读 · 0 评论 -
springboot:@Configuration&@Bean
Configuration:减少xml中配置,可以生命一个配置类来对bean进行配置=======================================================SpringConfig.java============================package org.spring.springboot.configs;import o...原创 2017-06-30 13:49:57 · 170 阅读 · 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 · 293 阅读 · 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 · 129 阅读 · 0 评论 -
springboot:logback
====================================================logback.xmlresource下添加xml文件==================================================== movikr-svc-activity ...原创 2017-06-30 16:20:51 · 101 阅读 · 0 评论 -
springboot:mybatis&druid&pagehelper
================================================pom.xml================================================ org.springframework.boot spring-boot-starter-web ...原创 2017-07-01 13:35:56 · 134 阅读 · 0 评论 -
springboot:redis(jedis)
application.properties==========================================redis.host=hostredis.port=6379redis.timeout=2000redis.password=pwd#最大分配的对象数redis.pool.maxTotal=1024#最大能够保持idel状态的对象数...原创 2017-07-01 14:10:51 · 92 阅读 · 0 评论 -
springboot:amq
pom.xml======================================================= org.springframework.boot spring-boot-starter-activemq ==========================================...原创 2017-07-01 22:20:39 · 219 阅读 · 0 评论 -
springboot:dubbo
[color=red]server:[/color]=======================================================pom.xml============================================= io.dubbo.springboot s...原创 2017-07-02 10:40:09 · 79 阅读 · 0 评论 -
springboot:ControllerAdvice
全局异常拦截//@ControllerAdvice(annotations=TestController.class)//@ControllerAdvice(basePackages={"com.aaa","com.bbb"})@ControllerAdvicepublic class GlobalExceptionHandler { @ExceptionHandle...原创 2017-07-02 14:09:15 · 184 阅读 · 0 评论 -
springboot:quartz集群
pom.xml========================================= org.quartz-scheduler quartz org.springframework spring-context-support ...原创 2017-07-02 20:40:00 · 122 阅读 · 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 · 117 阅读 · 0 评论