1.搭建一个简单的Springboot项目,最开始将启动类main函数与controller放到一个类里,可以正常启动和访问,但是将两个分开再启动时访问就会报错:This application has no explicit mapping for /error, so you are seeing this as a fallback. 2.解决方案 在main函数启动类上加注解:@SpringBootApplication(scanBasePackages = "com") 问题…
springboot项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde 创建springboot项目后启动,报错为 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-09-26 09:54…