Springboot +AngularJS,实现一个小功能

一、spring boot与spring mvc的区别是什么?
https://www.zhihu.com/question/64671972

二、搭建一个Springboot项目
1、https://www.cnblogs.com/pengyan-9826/p/8093099.html

2、如果出现Springboot的版本报错,原因是原因是pom.xml里面配的Springboot版本找不到,需要重新配Maven的setting.xml里的镜像仓库。
在仓库里看一下有哪些Springboot版本,在pom.xml里面换一个可以用的版本。
右键->Maven->Reimport。
点击启动类运行即可。

3、项目结构
在这里插入图片描述
User.java

package com.example.demo.bean;

public class User {
   
    String name;
    String password;

    public void setUsername(String name){
   
        this.name = name;
    }

    public void setPassword(String password){
   
        this.password = password;
    }

    public void printUser(){
   
        System.out.println(this.name);
        System.out.println(this.password);
    }

    public String getName(
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值