Skip to content

dev-zuo/springboot-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBoot Demo

Start

# start server
./run.sh  

接口

允许跨域、前端请求

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
  axios.post('http://localhost:9900/greeting', {
    "id": 1,
    "content": "测试"
  }).then((res) => {
    console.log('请求成功,', res)
  }, (err) => {
    console.log('请求发生了错误,', err)
  })
</script>

About

springboot demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published