`
houzhaowei
  • 浏览: 492792 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方 法: 1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用) 2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。 3)编辑/etc/sudoers文件。 ...
//Printer接口 interface IPrinter {      //接口printByString方法声明     public void printByString(String str); } //MyPrinter实现Printer接口 class MyPrinter implements IPrinter {     public void printByString(String str) {         System.out.println(str);     } } //IPrinter对象工厂,用于创建实现接口的类对象 class PrinterFacto ...
--------------------1---------------------- exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.actions.ProvinceAction]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Does the para meter type of ...
Global site tag (gtag.js) - Google Analytics