随笔分类 -  Springboot

摘要:在Spring boot开发中,需要在application.yml文件里配置数据库的连接信息,或者在启动时传入数据库密码,如果不加密,传明文,数据库就直接暴露了,相当于"裸奔"了,因此需要进行加密处理才行。 如果使用@SpringBootApplication注解启动的项目,只需增加maven依赖 阅读全文
posted @ 2019-06-26 13:50 也许还年轻 阅读(7237) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-05-08 09:43 也许还年轻 阅读(2) 评论(0) 推荐(0) 编辑
摘要:package com.loan.msg.config; import com.loan.msg.service.MessageReceiver; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.... 阅读全文
posted @ 2018-11-29 17:05 也许还年轻 阅读(1265) 评论(0) 推荐(0) 编辑
摘要:如何将所有的通过url的请求参数以及返回结果都输出到日志中? 如果在controller的类中每个方法名都写一个log输出肯定是不明智的选择。 使用spring的AOP功能即可完成。 logger.info("url ={}",request.getRequestURI()); //method l 阅读全文
posted @ 2018-11-29 14:25 也许还年轻 阅读(382) 评论(0) 推荐(0) 编辑
摘要:package com.loan.msg.config; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; import org.springframework.context.annotation.ComponentScan; import org.springframework.context... 阅读全文
posted @ 2018-11-29 13:15 也许还年轻 阅读(333) 评论(0) 推荐(0) 编辑
摘要:package com.job.center.quartz.common; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAwa... 阅读全文
posted @ 2018-10-13 21:35 也许还年轻 阅读(12395) 评论(0) 推荐(1) 编辑
摘要:org.springframework.cloud spring-cloud-starter-bus-amqp 1.3.3.RELEASE org.springframework.boot spring-boot-starter-... 阅读全文
posted @ 2018-08-06 11:25 也许还年轻 阅读(212) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-07-24 10:13 也许还年轻 阅读(5) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-07-24 10:08 也许还年轻 阅读(4) 评论(0) 推荐(0) 编辑
摘要:因为SpringBoot就是为了实现没有配置文件,因此之前手动在Mybatis中配置的PageHelper现在需要重新配置,而且配置方式与之前的SSM框架中还是有点点区别。 阅读全文
posted @ 2018-07-04 14:05 也许还年轻 阅读(9589) 评论(0) 推荐(0) 编辑
摘要:import com.dalaoyang.entity.User; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; ... 阅读全文
posted @ 2018-07-04 13:51 也许还年轻 阅读(4162) 评论(0) 推荐(0) 编辑
摘要:import lombok.extern.java.Log; import org.springframework.amqp.core.TopicExchange; import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory; import org.springframework.amqp.... 阅读全文
posted @ 2018-07-04 13:36 也许还年轻 阅读(341) 评论(0) 推荐(0) 编辑
摘要:spring: rabbitmq: car_host: car_port: car_username: car_password: car_vhost: car_exchange: car_routingkey: car_queuename: car_put_routingkey: ... 阅读全文
posted @ 2018-07-04 13:25 也许还年轻 阅读(928) 评论(0) 推荐(0) 编辑
摘要:spring: datasource: type: com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.jdbc.Driver url: username: password: jackson: time... 阅读全文
posted @ 2018-06-27 10:11 也许还年轻 阅读(3662) 评论(0) 推荐(0) 编辑
摘要:package io.renren.common.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPoli... 阅读全文
posted @ 2018-06-27 10:04 也许还年轻 阅读(1760) 评论(0) 推荐(0) 编辑
摘要:@ResponseBody @RequestMapping(value = "/upload.do", method = RequestMethod.POST) public String upload(String fileName, MultipartFile jarFile) { // 下面是测试代码 System.out.println(fileName)... 阅读全文
posted @ 2017-06-07 14:05 也许还年轻 阅读(14313) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示