原创 Dynamic Web Module 3.1 requires Java 1.7 or newer.
若是使用了Maven構建項目,可以在pom.xml文件的build標籤中加入以下代碼: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <art
原创 eclipse 字段打開所在文件夾
點擊External Tools Configurations 點擊Program,進行編輯(打開文件夾,C:\Windows\explorer.exe,${container_loc})
原创 @SpringBootApplication註解
之前用戶使用的是3個註解註解他們的main類,分別是@Configuration,@EnableAutoConfiguration,@ComponentScan。由於這些註解一般都是一起使用,spring boot提供了一個統一的註解@S
原创 SpringMVC的常用註解
1.@Controller @Controller註解在類上,表明這個類是Spring MVC裏的Controller,將其聲明爲Spring的一個Bean,Dispatcher Servlet會自動掃描註解了此註解的類,並將Web請求映
原创 MVC的dao層、service層和controller層
原文鏈接:https://blog.csdn.net/qq_26411021/article/details/79493340 業務邏輯: Controller-->servic