• Java 项目工程搭建 --创建子模块(依赖父工程)


    这个建方比较干净,不会生成乱七八糟的东西,(建完以后,其它模块可以 Copy 改名字)

     

     选择 Maven 直接下一步

     只要输入一个AtifactId

     没有过多的依赖,适合专业人事

    建主启动程序

     

    建 controller,这边指定了路由

    @GetMapping(value = "/login") == @RequestMapping(value = "/login",method = RequestMethod.GET)


     工程中有多个启动程序,会出现 Run Dashboard 方便操作【微服务的起步】

    附上: vipsoft-model-user.pom

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <parent>
            <artifactId>vipsoft-parent</artifactId>
            <groupId>com.vipsoft.boot</groupId>
            <version>1.0-SNAPSHOT</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
    
        <artifactId>vipsoft-model-user</artifactId>
    
        <dependencies>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-web</artifactId>
            </dependency>
        </dependencies>
    
        <build>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                </plugin>
            </plugins>
        </build>
    </project>
  • 相关阅读:
    iscroll4实现轮播图效果
    用css样式围剿等高列问题(转载)
    一些小bug
    前端代码规范
    !DOCTYPE html文档类型声明简写 HTML5 DOCTYPE缩写
    JS判断鼠标向上滚动还是向下滚动
    css Cursor:url()自定义鼠标指针样式为图片
    线段树-矩形面积求并
    值域线段树 bzoj 4627
    简单数位DP
  • 原文地址:https://www.cnblogs.com/vipsoft/p/13054723.html
Copyright © 2020-2023  润新知