月华


  • 首页

  • 标签

  • 分类

  • 归档

  • 搜索

linux下java的安装

发表于 2018-07-16 | 更新于: 2018-09-21 |

Linux下java的安装

基本环境

Linux: CentOS Linux release 7.5.1804 (Core)
Java: java version “10.0.1”

阅读全文 »

spring注解-注册bean的几种方式

发表于 2018-07-11 | 更新于: 2018-09-21 | 分类于 框架 |

前言

在spring中注册bean有多种方式:

阅读全文 »

spring注解(1)

发表于 2018-07-11 | 更新于: 2018-07-11 | 分类于 框架 |

@ComponentScan

@ComponentScan使用@Repeatable标识,在jdk1.8中可重复标注,在1.8以下版本中可使用@ComponentScans达到同样效果

阅读全文 »

spring注解-Hello World

发表于 2018-07-10 | 更新于: 2018-07-11 | 分类于 框架 |

使用java类代替传统的xml

传统配置

阅读全文 »

Linux下nginx的安装

发表于 2018-07-06 | 更新于: 2020-11-16 | 分类于 服务器 |

遇到的问题

the HTTP rewrite module requires the PCRE library

error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using –without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using –with-pcre= option.

阅读全文 »

连接redis

发表于 2018-06-28 | 更新于: 2018-07-06 | 分类于 数据库 |

遇到的问题

无法连接上redis

使用redis-cli可以正常使用redis,但是在Windows中使用python连不上,这就很烦躁,没办法只能靠百度了
1.可能是端口未开放
使用该命令开放端口

1
firewall-cmd --zone=public --add-port=6379/tcp --permanent

阅读全文 »

Linux下redis的安装

发表于 2018-06-28 | 更新于: 2018-07-16 | 分类于 数据库 |

遇到的问题

本次安装redis过程中遇到了不少问题在此一一记录下来!!!

yum出现Could not retrieve mirrorlist

出现该问题一般是由于网络有问题,具体解决方案参照https://blog.csdn.net/gebitan505/article/details/54584213

阅读全文 »

maven

发表于 2018-05-27 | 更新于: 2018-05-27 | 分类于 工具 |

官网下载maven

https://maven.apache.org/download.cgi

阅读全文 »

zteoa项目

发表于 2018-05-27 | 更新于: 2018-05-27 | 分类于 团队 |

初始化项目

项目地址:https://github.com/chsm1998/team_zteoa.git

方法一:

使用git clone命令拷贝然后导入eclipse

1
git clone https://github.com/chsm1998/team_zteoa.git

阅读全文 »

spring-mvc的疑惑(持续更新)

发表于 2018-05-12 | 更新于: 2018-05-27 | 分类于 框架 |

1.@SessionAttribute注解

以下是官方文档的解释:

If you need access to pre-existing session attributes that are managed globally, i.e. outside the controller (e.g. by a filter), and may or may not be present use the @SessionAttribute annotation on a method parameter:

关键在于and may or may not be present翻译过来是:可能存在也可能不存在
而在实际使用时若session无法获取到该属性是会报400错误的:

Missing session attribute ‘user’ of type User

阅读全文 »
1234

月华

勤学如春起之苗,不见其增,日有所长;
辍学如磨刀之石,不见其损,日有所亏。

38 日志
14 分类
25 标签
GitHub 个人随笔
© 2021 月华