mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-21 01:10:39 +08:00
建立项目与数据库
This commit is contained in:
27
bookshelfplus/src/main/java/plus/bookshelf/App.java
Normal file
27
bookshelfplus/src/main/java/plus/bookshelf/App.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package plus.bookshelf;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* Hello world!
|
||||
*
|
||||
*/
|
||||
@SpringBootApplication(scanBasePackages = { "plus.bookshelf" })
|
||||
@RestController
|
||||
@MapperScan("plus.bookshelf.mapper")
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
System.out.println( "Hello World!" );
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping("/")
|
||||
public String Home() {
|
||||
return "首页";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user