# interview-registry **Repository Path**: yankj12/interview-registry ## Basic Information - **Project Name**: interview-registry - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-11-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # interview-registry 记录面试登记表中信息 ## 待开发的功能 - 记录面试登记表中信息 - 图表展示一些趋势 ## 常见问题 ### SpringBoot启动报错Caused by: java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/function/Supplier;)V 报错信息如下: ```Java 十一月 26, 2018 3:05:44 下午 org.springframework.context.support.GenericApplicationContext refresh 警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.sinosoft.interview.registry.InterviewRegistryApplication]; nested exception is java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/function/Supplier;)V 十一月 26, 2018 3:05:44 下午 org.springframework.test.context.TestContextManager prepareTestInstance 严重: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@6ddf90b0] to prepare test instance [com.sinosoft.interview.registry.MongoTemplateTest@72f926e6] java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.sinosoft.interview.registry.InterviewRegistryApplication]; nested exception is java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/function/Supplier;)V at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:561) ... 25 more Caused by: java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/function/Supplier;)V at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.getAttributes(AutoConfigurationImportSelector.java:132) ``` 查了下资料,发现大部分是说jar包冲突导致,想了想就去[Spring官网](https://start.spring.io/)使用start生成了一个pom 添加组件`web`,`mongo`等 重新刷新项目后,正常了 ### Path represents URL or has "url:" prefix: [classpath:/templates/ controller中将url映射到了视图,并且`视图名.html`在templates文件夹下是存在的,但是页面报404错误。 最后经过尝试,在pom文件中添加`thymeleaf`依赖后,可以显示页面 ```pom org.springframework.boot spring-boot-starter-thymeleaf ```