避免过多 commit 纪录造成线图繁杂 透过 Rebase Interactive Mode来将 commit log 进行精简 前言 在开发的过程中,会随着各种原因将代码提交至 local repository 中,并且在完成最终功能的开发后,会将 loca... ...
分类:
其他好文 时间:
2019-09-06 12:43:46
阅读次数:
368
文章来自:循序渐渐linux:基础知识 一书 7.3章LAMP服务器搭建 日常故障 centos上好多软件升级需要配置epel源 其中有一点小插曲 需要手动更改 1、很多时候,对PHP环境要求较新的版本,例如,PHP 7环境,如果通过源码编译、安装,将会非常麻烦。这里提供一种通过yum工具安装最新P ...
分类:
Web程序 时间:
2019-09-06 01:22:25
阅读次数:
134
@Controller 标注为一个控制器类 @RestController 包含@Controller @ResponseBody 默认返回json格式 @Service 标注为业务层组件 @Repository 标注数据访问组件,即DAO组件 @Component 泛指组件 @Autowired ...
分类:
编程语言 时间:
2019-09-03 23:55:44
阅读次数:
199
spring @component的作用详细介绍 1、@controller 控制器(注入服务) 2、@service 服务(注入dao) 3、@repository dao(实现dao访问) 4、@component (把普通pojo实例化到spring容器中,相当于配置文件中的<bean id= ...
分类:
编程语言 时间:
2019-09-03 11:58:27
阅读次数:
99
在CentOS中默认安装有MariaDB,这个是MySQL的分支,但为了需要,还是要在系统中安装MySQL,而且安装完成之后可以直接覆盖掉MariaDB。 1 下载并安装MySQL官方的 Yum Repository 使用上面的命令就直接下载了安装用的Yum Repository,大概25KB的样子 ...
分类:
数据库 时间:
2019-09-03 11:22:24
阅读次数:
140
运行以下git命令的时候出现错误 error 原因 本地没有生成SSH key. 解决方法here 1. generate SSH key; 按照提示进行; 2. add your SSH key to the ssh-agent. 3. add the SSH key to your Github ...
分类:
其他好文 时间:
2019-09-02 19:04:54
阅读次数:
83
1.引入properties文件 2.自动扫描包 use default filters 使用默认的 Filter 进行包扫描,而默认的 Filter 对标有 @Service,@Controller和@Repository 的注解的类进行扫描,默认值为true,当此值为false时,需要配合 注解 ...
分类:
编程语言 时间:
2019-08-31 23:22:36
阅读次数:
83
@Component, @Service, @Controller, @Repository是spring注解,注解后可以被spring框架所扫描并注入到spring容器来进行管理 @Component是通用注解,其他三个注解是这个注解的拓展,并且具有了特定的功能 @Repository注解在持久层 ...
分类:
其他好文 时间:
2019-08-30 22:36:36
阅读次数:
73
遇到一个巨坑 跑公司的一个项目,拉下来代码,跑不起来。发现maven一直报这个错 was cached in the local repository,resolution will not be reattempted until the update interval of nexus has ...
分类:
其他好文 时间:
2019-08-29 09:51:56
阅读次数:
100
1、添加相关jar包: 2、添加配置文件: 3、添加实体类: 4、实现Repository类: 5、controller实现: 6、多表联合查询: 7、参考资料: http://www.ityouknow.com/springboot/2016/02/03/spring-boot-web.html ...
分类:
其他好文 时间:
2019-08-29 00:09:37
阅读次数:
90