- 博客(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
冒泡排序及三种优化方式代码
2019-03-28
《Java核心技术+卷1:基础知识(原书第9版)》
2019-03-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人