-
大小: 2.89MB文件類型: .zip金幣: 2下載: 0 次發布日期: 2023-10-02
- 語言: Java
- 標簽: springboot??web??
資源簡介
使用springboot、jpa、jsp 實現的web登錄功能。包含jap使用以及技巧、springboot中怎么集成JSP, jsp中傳參數等。

代碼片段和文件信息
package?com.luowei;
import?org.springframework.boot.SpringApplication;
import?org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import?org.springframework.boot.autoconfigure.SpringBootApplication;
import?org.springframework.boot.builder.SpringApplicationBuilder;
import?org.springframework.boot.web.support.SpringBootServletInitializer;
import?org.springframework.context.annotation.ComponentScan;
import?org.springframework.context.annotation.Configuration;
import?org.springframework.stereotype.Controller;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.RestController;
//@Controller
//@SpringBootApplication
@ComponentScan(basePackages={“com.luowei“})??
//@EnableAutoConfiguration???//禁用自動配置,否則會注入不到其他controller
@Configuration
@EnableAutoConfiguration
public?class?App?extends?SpringBootServletInitializer?{
@Override??
????protected?SpringApplicationBuilder?configure(SpringApplicationBuilder?application)?{??
????????return?application.sources(App.class);??
????}??
public?static?void?main(String[]?args)?{
SpringApplication.run(App.class?args);
}
// @RequestMapping(“/“)
// public?String?index()?{
// return?“index“;
// }
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-09-15?09:44??springBoot\
?????文件????????1329??2017-09-05?15:39??springBoot\.classpath
?????文件????????1399??2017-09-05?15:39??springBoot\.project
?????目錄???????????0??2017-09-04?19:38??springBoot\.settings\
?????文件?????????626??2017-09-04?19:36??springBoot\.settings\.jsdtscope
?????文件?????????201??2017-09-04?19:56??springBoot\.settings\org.eclipse.core.resources.prefs
?????文件?????????422??2017-09-04?19:44??springBoot\.settings\org.eclipse.jdt.core.prefs
?????文件??????????86??2017-09-04?19:36??springBoot\.settings\org.eclipse.m2e.core.prefs
?????文件?????????746??2017-09-04?19:42??springBoot\.settings\org.eclipse.wst.common.component
?????文件?????????245??2017-09-04?19:44??springBoot\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2017-09-04?19:36??springBoot\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2017-09-04?19:36??springBoot\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????????48??2017-09-04?19:36??springBoot\.settings\org.eclipse.wst.validation.prefs
?????文件????????2925??2017-09-05?15:40??springBoot\pom.xm
?????目錄???????????0??2017-09-15?14:30??springBoot\sql\
?????文件????????2649??2017-09-15?14:30??springBoot\sql\luowei.sql
?????目錄???????????0??2017-09-04?19:36??springBoot\src\
?????目錄???????????0??2017-09-04?19:42??springBoot\src\main\
?????目錄???????????0??2017-09-04?19:48??springBoot\src\main\java\
?????目錄???????????0??2017-09-04?19:48??springBoot\src\main\java\com\
?????目錄???????????0??2017-09-05?09:47??springBoot\src\main\java\com\luowei\
?????文件????????1254??2017-09-04?19:51??springBoot\src\main\java\com\luowei\App.java
?????目錄???????????0??2017-09-05?09:47??springBoot\src\main\java\com\luowei\ba
?????文件?????????653??2017-09-05?09:47??springBoot\src\main\java\com\luowei\ba
?????文件?????????739??2017-09-05?09:47??springBoot\src\main\java\com\luowei\ba
?????目錄???????????0??2017-09-05?09:47??springBoot\src\main\java\com\luowei\contant\
?????文件?????????369??2017-09-05?09:47??springBoot\src\main\java\com\luowei\contant\ResultCodeContant.java
?????目錄???????????0??2017-09-05?09:47??springBoot\src\main\java\com\luowei\controller\
?????文件?????????701??2017-09-05?09:47??springBoot\src\main\java\com\luowei\controller\AccountController.java
?????文件????????1764??2017-09-05?16:08??springBoot\src\main\java\com\luowei\controller\LoginController.java
?????文件?????????359??2017-09-04?19:50??springBoot\src\main\java\com\luowei\controller\TestController.java
............此處省略398個文件信息
- 上一篇:通過Java代碼方式發送郵件
- 下一篇:java 語言程序設計 第十版 復習題答案
評論
共有 條評論