自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

星空

广州程序员一枚~

  • 博客(9)
  • 资源 (3)
  • 收藏
  • 关注

原创 如何在其他类中使用application.properties的属性

在Spring Boot项目中,application.properties文件内容如下:#mongo配置spring.data.mongodb.host = spring.data.mongodb.port = 27017#spring.data.mongodb.username=user1#spring.data.mongodb.password=spring.data.mongo...

2019-06-09 02:28:38 753

原创 Nginx+Mongodb 文件存储方案

git submodule update时,出现问题:Cloning into 'mongo-c-driver'...fatal: unable to connect to github.com:github.com[0: 13.229.188.59]: errno=Connection timed outClone of 'git://github.com/mongodb/mongo-...

2019-06-09 02:03:39 1521

转载 SpringBoot集成MyBatis详解

本文将使用mybatis官方starter来配置Mybatis首先加入mybatis-spring-boot-stater的Maven依赖<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</art...

2019-06-08 21:56:05 163

原创 yum安装nginx,并配置静态资源服务器

1、使用yum源安装nginx:参考:https://www.cnblogs.com/lauren1003/p/5985206.htmlLinux下查看nginx的安装路径输入:nginx -V启动nginx:service nginx start重启nginx:service nginx restart输出:configure arguments: --prefix=/usr/...

2019-06-08 12:58:57 476

原创 springboot启动报错:"Error starting ApplicationContext. To display the conditions report re-run your appl

Spring Boot启动时,报错如下:***************************APPLICATION FAILED TO START***************************Description:Field deviceMapper in com.esagent.es.EsDataInit required a bean of type 'com.esa...

2019-06-08 00:16:44 11618

原创 腾讯云Centos上部署Mongodb

因为使用yum安装非常方便,所以下文使用yum安装,。1、修改yum包管理配置:vi /etc/yum.repos.d/mongodb-org-3.4.repo // 会自动新建mongodb-org-3.4.repo文件复制下面配置信息:[mongodb-org-3.4]name=MongoDB Repositorybaseurl=https://repo.mongodb.org...

2019-06-04 23:20:51 339

原创 Mongodb添加超级管理员和普通用户

https://docs.mongodb.com/manual/reference/method/db.createUser/#create-administrative-user-with-roles

2019-06-01 19:01:42 1739

原创 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could

新建了一个Spring boot项目后,启动项目,出现错误:原因是项目中用到了Mysql数据库,启动前必须配置数据源配置文件解决方法:在resources目录下的application.properties文件中,添加mysql配置信息:# mysqlserver.port=8080spring.datasource.url=jdbc:mysql://localhost/test?u...

2019-06-01 12:23:51 714

原创 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version表中的字段名 key 与mysql的关键字冲突

2019-06-01 09:39:13 251

冒泡排序及三种优化方式代码

此资源是本人演示冒泡排序及其优化方案的示例代码,欢迎大家下载。关于冒泡排序的介绍,也可以参考本人博文https://blog.csdn.net/Abel_Liujinquan/article/details/88880483

2019-03-28

《Java核心技术+卷1:基础知识(原书第9版)》

一直以来,《Java核心技术》都被认为是面向高级程序员的经典教程和参考书,它内容翔实、客观准确,不拖泥带水,是想为实际应用编写健壮Java代码的程序员的首选。

2019-03-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除