下面是我的Spring Boot应用程序的正常行为: 用户可以在表单中填写常规信息的登录页(http://localhost:8085/customers/generalInfo/)。提交后,用户将被重定向到财务详细信息页面(http://localhost:8085/customers/financialDetails),在此他可以填写另一个表单并提交结果。 我的控制器类如下: GeneralInfoController.java @Controller
@RequestMapping("/customers/generalInfo")
public class Custo
我是Spring框架和Spring Boot的新手。
我已经实现了一个非常简单的RESTful Spring Boot web应用程序。
您可以在另一个问题中看到几乎完整的源代码:
应用程序如何服务外部静态HTML、css js文件?
例如,目录结构可能如下所示:
MyApp\
MyApp.jar (this is the Spring Boot app that services the static files below)
static\
index.htm
images\
logo.jpg
js\
我是个新手。尝试使用spring-boot maven创建一个简单的web应用程序。使用dependency spring-boot-starter-web的基本静态页面显示效果良好。当我在pom.xml中包含spring-boot-devtools和spring-boot-starter-actuator时,它给出了build error Re-run Maven using the -X switch to enable full debug logging。
我尝试在pom文件中包含spring-webmvc依赖,结果仍然是一样的。
<?xml version="1.0