swordmanChen
码龄10年
求更新 关注
提问 私信
  • 博客:67,473
    67,473
    总访问量
  • 18
    原创
  • 6
    粉丝
  • 3
    关注
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
加入CSDN时间: 2016-12-09
博客简介:

swordmanChen的博客

查看详细资料
个人成就
  • 获得10次点赞
  • 内容获得3次评论
  • 获得26次收藏
  • 博客总排名276,392名
创作历程
  • 5篇
    2019年
  • 26篇
    2018年
成就勋章

TA关注的专栏 0

TA关注的收藏夹 0

TA关注的社区 0

TA参与的活动 0

兴趣领域 设置
  • 后端
    spring
  • 服务器
    linux
创作活动更多

「谁说嵌入式只是调包和焊板子?」—— 2026嵌入式全栈技术征锋令

谁说嵌入式只会“Ctrl+C 调包”和“拿电烙铁焊板子”?2026嵌入式全栈技术征锋令正式启幕! 本次活动专为硬核硬件/软件开发者打造,无论你是刚玩转裸机外设的萌新,还是精通RTOS调度、死磕底层驱动的行业老手,亦或是执掌系统架构的大神,这里都是你证明实力的舞台! 拒绝表面功夫,每一行代码,都有撬动硬件的力量!晒出你的硬核工程实战,为嵌入式开发者的全栈硬实力正名!

212人参与 去参加
  • 最近
  • 文章
  • 专栏
  • 代码仓
  • 资源
  • 收藏
  • 关注/订阅/互动
更多
  • 最近

  • 文章

  • 专栏

  • 代码仓

  • 资源

  • 收藏

  • 关注/订阅/互动

  • 社区

  • 帖子

  • 问答

  • 课程

  • 视频

搜索 取消

modal("hide")无效和summernote下拉框不显示

请检查jquery.js和bootstrap.js是否重复加载及先后问题
原创
博文更新于 2018.06.21 ·
3916 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

vue跨域cookie问题

前端配置withCredentials =truespringboot后端配置@Beanpublic CorsFilter corsFilter() { final UrlBasedCorsConfigurationSource urlBasedCorsConfigurationSource = new UrlBasedCorsConfigurationSource(); ...
原创
博文更新于 2019.09.20 ·
750 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Springboot2.x+sharding-jdbc+mysql读写分离

mysql主从备份:https://my.oschina.net/u/3773384/blog/1810111#comment-listsharding-shpere主从分离:https://shardingsphere.apache.org/document/current/cn/manual/sharding-jdbc/usage/read-write-splitting/另外注意:j...
原创
博文更新于 2019.05.29 ·
546 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

springboot2集成oauth2

最近拿oauth2练手,搭了oauth2的demo。服务端配置/** * oauth2配置 * @author hao * @Date 2018-04-19 */public class OAuth2ServerConfig { /** * oauth2资源服务器配置 * @author kdlq-hao */ @Configuration @...
原创
博文更新于 2019.04.14 ·
1322 阅读 ·
0 点赞 ·
0 评论 ·
3 收藏

springboot使用sharding-jdbc分库分表

1,引入依赖<dependency> <groupId>io.shardingsphere</groupId> <artifactId>sharding-core</artifactId> <version>2.0.3</version></dependency&
原创
博文更新于 2019.02.16 ·
1778 阅读 ·
2 点赞 ·
1 评论 ·
5 收藏

springboot使用@ConfigurationProperties(prefix="")加载配置

@ConfigurationProperties 加在类上或方法上,可以和@PropertySource组合使用加在方法上:@Bean("primaryDataSource")@Primary@ConfigurationProperties("primary.datasource")public DataSource buildPrimaryDataSource() { retu...
原创
博文更新于 2019.02.16 ·
32978 阅读 ·
3 点赞 ·
0 评论 ·
10 收藏

JPA 2.x.x版本新特性(持续更新)

1、T findOne(ID id) 已取消,改为 Optional<S> findOne(Example<S> example)和Optional<T> findById(ID id),返回的都是Optional对象。使用如下public ActivityEntity get(Integer id) { ActivityEntity activity ...
原创
博文更新于 2019.01.17 ·
1122 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

java访问联图接口

构造联图接口url private String getQRCodeUrl(String text, String logoUrl, int size) { StringBuilder sb = new StringBuilder("http://qr.liantu.com/api.php?text="); sb.append(text); sb.append("&lo...
原创
博文更新于 2018.12.07 ·
276 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

java访问联图接口

构造联图接口url private String getQRCodeUrl(String text, String logoUrl, int size) { StringBuilder sb = new StringBuilder("http://qr.liantu.com/api.php?text="); sb.append(text); sb.append("&lo...
原创
博文更新于 2018.12.07 ·
276 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

spring jpa自定义复杂查询

public class StudentBaseRepositoryImpl implements StudentBaseRepositoryCustom { @Autowired @PersistenceContext private EntityManager entityManager; @Override public List<Objec...
转载
博文更新于 2018.10.31 ·
792 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

springboot前后端分离之跨域

springmvc有多种处理跨域的方法,介绍最简单的一种:@Configurationpublic class WebMvcConfig extends WebMvcConfigurerAdapter { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping...
原创
博文更新于 2018.10.30 ·
343 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Springboot整合redis

 首先需自行安装redis数据库springboot整合redis十分简单,只需要在application配置文件里配置:spring:  redis:    host: localhost    database: 0    port: 6379    timeout: 3000即可通过注入redisTemplate操作redis数据库:@AutowiredRe...
原创
博文更新于 2018.10.26 ·
230 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Spring Hibernate JPA 联表查询 复杂查询

 正文:一、Hibernate VS Mybatis1、简介    Hibernate对数据库结构提供了较为完整的封装,Hibernate的O/R Mapping实现了POJO 和数据库表之间的映射,以及SQL 的自动生成和执行。程序员往往只需定义好了POJO 到数据库表的映射关系,即可通过Hibernate 提供的方法完成持久层操作。程序员甚至不需要对SQL 的熟练掌握, Hiber...
转载
博文更新于 2018.10.13 ·
393 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

jpa使用注解生成表时无外键

刚入手springboot时,在使用jpa实体注解生成表无外键。是因为jpa不知道使用何种Dialect创建,默认没有外键。在配置文件加上database-platform: org.hibernate.dialect.MySQL5InnoDBDialect就好了...
原创
博文更新于 2018.07.26 ·
3982 阅读 ·
3 点赞 ·
1 评论 ·
3 收藏

图片base64转字符串传输

String base64; base64 = request.getParameter("picture").replace(" ", "+"); System.out.println(base64); //Base64解码 Base64.Decoder decoder = Base64.getDecoder(); byte[] picture = decoder...
原创
博文更新于 2018.07.19 ·
745 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

springboot里的junit测试

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-test</artifactId> <version>2.0.3.RELEASE</version>
原创
博文更新于 2018.07.17 ·
310 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

服务端文件下载功能及客户端使用apache.commons.httpclient下载

@RequestMapping("/jar-file") public void downLoadFile(String downloadFilePath, HttpServletResponse response) throws IOException { File file = new File(filePath + downloadFilePath); if (!file.e...
原创
博文更新于 2018.06.26 ·
566 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

解决Eclipse无法添加Tomcat服务器的问题

eclipse配置好以后,如果Tomcat服务器在文件系统的位置发生了变化,则需要重新配置Tomcat服务器,这时会遇到无法设置服务器的问题即图中框起来的部分无法进行操作,这时需要关闭Eclipse删除WorkSpace目录下/.metadata/.plugins/org.eclipse.core.runtime/.settings目录中的org.eclipse.wst.server.core.p...
转载
博文更新于 2018.06.20 ·
531 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

HTTP协议状态码详解(HTTP Status Code)

使用ASP.NET/PHP/JSP 或者javascript都会用到http的不同状态,一些常见的状态码为: 200 – 服务器成功返回网页 404 – 请求的网页不存在 503 – 服务不可用 1xx(临时响应) 表示临时响应并需要请求者继续执行操作的状态代码。代码   说明 100   (继续) 请求者应当继续提出请求。 服务器返回此代码表示已收到请求的第一部分,正在等待其余部分。  101 ...
转载
博文更新于 2018.06.13 ·
265 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

SpringBoot配置属性之DataSource

SpringBoot配置属性系列SpringBoot配置属性之MVCSpringBoot配置属性之ServerSpringBoot配置属性之DataSourceSpringBoot配置属性之NOSQLSpringBoot配置属性之MQSpringBoot配置属性之SecuritySpringBoot配置属性之MigrationSpringBoot配置属性之其他另外附上个人关于springboot的...
转载
博文更新于 2018.06.12 ·
447 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多