记录生活的点点滴滴~~~

尝试使用spring-data-jpa时候遇到一个问题,启动时报错:(下边是一行日志,太长了,我人工的给换行了)

Offending resource: class path resource [applicationContext.xml];
nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: 
Unexpected exception parsing XML document from class path resource [context/applicationContext-database.xml]; 
nested exception is org.springframework.beans.FatalBeanException: 
Invalid NamespaceHandler class [org.springframework.data.jpa.repository.config.JpaRepositoryNameSpaceHandler] 
for namespace [http://www.springframework.org/schema/data/jpa]: problem with handler class file or dependent class; 
nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/framework/AbstractAdvisingBeanPostProcessor

继续阅读

整个电脑重新装了系统,还是ArchLinux,尝试了一些新的东西,简单记录下,备忘

  • ArchLinux
  • lightdm
  • lightdm-webkit-greeter
  • lightdm-webkit-archlinux-theme
  • i3-wm
  • gnome-shell
  • cinnamon
  • fontconfig-infinality
  • Zsh 强烈推荐

继续阅读

平时在ArchLinux使用的是Users组的用户,而在服务器上使用的是root,好吧我知道用root不对,内网为了方便偷懒了

这样存在一个问题,每次登录服务器都需要输入 ssh root@abcdef.com 这样的长串代码,特别是还需要输入@,如果不输入,ssh会尝试用当前本地的用户来登录远程服务器。手需要离开常用位置,简直是反人类,对于我这种懒人来说,这简直是不可饶恕的

还好发现是可以在配置文件中设置的,在.ssh目录下创建 config文件

继续阅读