org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.bjsxt.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.bjsxt.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
javax.servlet.ServletException: Servlet[springmvc]的Servlet.init()引发异常
查阅很多没发现错误原因在那里
ssmdemo.zip
老师我发现我这个它不能每次保存在image目录下,第一次可以,然后我把保存的图片删除后就需要去改一下output,得加个斜杠,然后再次启动才能把图片保存在image目录中,否则重新启动就没有,这是为啥?
一个终端只能认证一个用户吗???
当我们给数据库添加用户的时,任意库执行命令都行,还是说需要到指定的库下执行db.createUser()?
provider启动没问题,不过consumer在install的时候,出现了这个问题
springbootDubbo.zip
老师这里是因为什么啊
package com.bzcxy.jdbc; import java.io.IOException; import java.io.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.Properties; import java.util.Scanner; public class Statement_test { public static void main(String[] args) throws IOException, ClassNotFoundException, SQLException { InputStream is=jdbc_test5.class.getClassLoader().getResourceAsStream("jdbc.properties"); Properties properties=new Properties(); properties.load(is); String user=properties.getProperty("user"); String password=properties.getProperty("password"); String url=properties.getProperty("url"); String driverClass=properties.getProperty("driverClass"); Class.forName(driverClass);//加载驱动 Connection coon= DriverManager.getConnection(url,user,password); Statement statement=coon.createStatement();//创建对象statement,为了执行sql语句 Scanner sc=new Scanner(System.in); System.out.println("输入账号"); String username=sc.next(); System.out.println("输入密码"); String userpassword=sc.next(); String sql="insert into user(username,userpassword) values('"+username+"‘,’"+userpassword+"')";//拼写完sql语句 statement.execute(sql); coon.close(); statement.close(); } [object Object]
这个列不匹配是啥意思呀..........................
为啥这一节提交方式变为了post,上一节也是提交数据,但是为get?
老师为啥您的pdf我都找不到在哪
老师,我想问下 json对象和转换 之前学过吗?我好像没什么印象
package com.bzcxy.jdbc; import java.io.IOException; import java.io.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Properties; public class jdbc_test5 { public static void main(String[] args) throws IOException, ClassNotFoundException, SQLException { InputStream is=jdbc_test5.class.getClassLoader().getResourceAsStream("jdbc.properties"); Properties properties=new Properties(); properties.load(is); String user=properties.getProperty("user"); String password=properties.getProperty("password"); String url=properties.getProperty("url"); String driverClass=properties.getProperty("driverClass"); Class.forName(driverClass);//加载驱动 Connection coon= DriverManager.getConnection(url,user,password);//获取数据 System.out.println(coon); } }
老师 我这里为啥显示为null啊,///////////////
package com.changyonglei; import java.util.Arrays; //自定义 一个简单的包装类(仅限于联系) public class MyInteger<toString> { private final int value; private static MyInteger[] cache;//缓存【-128 , 127】 private static final int LOW=-128; private static final int HIGH=127; static{ cache=new MyInteger[HIGH-LOW+1]; for(int i=LOW;i<HIGH;i++){ cache[i-LOW]=new MyInteger(i); } System.out.println(Arrays.toString(cache)); } public MyInteger(int value){ this.value=value; } public static MyInteger valueOf(int value){ return new MyInteger(value); } public int intValue(){ return value; } public static void main(String[] args) { MyInteger a=new MyInteger(10); MyInteger b=MyInteger.valueOf(100); int c=b.intValue(); } }
老师请问这里面toString不重写为什么返回的是地址呢?这里面调用了Arrays 的toString,已经覆盖了Object的toString了呀 ,应该返回的是字符串值 为什么还是地址呢?我点开Arrays类的toString方法看了也是返回数值中的字符串值呀 ,实在想不明白了!
老师,这个网址非本机能连上来吗?
package com.itbaizhan; public class MySinglyLinkedList<E> implements MyList { //定义单向链表中的节点对象 class Node<E>{ private E item;//存储元素 private Node next;//存储下一个节点对象地址 Node(E item,Node next){ this.item = item; this.next = next; } } private Node head;//存放列表中的头节点 private int size;// 记录个数 //添加元素 @Override public void add(E element) { //报错!!!!!!!!!划红线了 //创建节点 Node<E> node = new Node<>(element,null); //找到到尾节点 //节点的挂接 //记录元素个数 } //获取元素 @Override public Object get(int index) { return null; } //获取元素个数 @Override public int size() { return 0; } //删除元素 @Override public Object remove(int index) { return null; } }
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637