
调错
论文复现并优化
这个作者很懒,什么都没留下…
展开
-
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
一,在main方法所在的类忘记添加@SpringBootApplication二,缺少依赖,添加即可<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency>...原创 2021-07-15 15:15:50 · 135 阅读 · 0 评论 -
org.springframework.context.annotation.Configuration.proxyBeanMethods()
spring boot Caused by: java.lang.NoSuchMethodException: org.springframework.context.annotation.Configuration.proxyBeanMethods() <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-p原创 2021-07-15 14:53:13 · 884 阅读 · 0 评论 -
@Service interfaceClass() or interfaceName() or interface class
@Service interfaceClass() or interfaceName() or interface classjava.lang.IllegalArgumentException: @Service interfaceClass() or interfaceName() or interface class must be present!该错误是由于加@Service 注解的类没有实现接口原创 2021-07-15 14:51:17 · 207 阅读 · 0 评论 -
java.io.FileNotFoundException: class path resource [com/wisely/highlight_spring4/ch2/el/text.txt
因为IDEA有个配置项,默认只把.class的文件放到编译目录中,也就是target目录。去看了target目录下,有没有那文件。原因是: idea不会编译src的java目录的除Java外的文件解决办法:pom.xml中加入:<build> <resources> <resource> <directory>src/main/java</directory>原创 2021-07-12 14:35:15 · 231 阅读 · 0 评论 -
使用spring data jpa时,出现Error creating bean with name ‘entityManagerFactory‘ defined in class
@Entity@Table(name="user")public class User {//在所有Entity上添加懒加载注解 @Proxy(lazy = false)原创 2021-04-26 16:11:50 · 219 阅读 · 0 评论 -
There was an unexpected error (type=Internal Server Error, status=500)
There was an unexpected error (type=Internal Server Error, status=500)跟换一个视图模板试试,很可能是模板错误原创 2021-04-20 20:14:43 · 535 阅读 · 0 评论 -
全排列
给定一个 没有重复 数字的序列,返回其所有可能的全排列。输入: [1,2,3]输出:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]]采用回溯法的方式来解决class Solution { public List<List<Integer>> permute(int[] nums) { ArrayList<List<Integer>> al =原创 2020-09-05 17:33:41 · 87 阅读 · 0 评论