啟動APP后,報錯No active profile set, falling back to default profiles: default

點擊啟動APP,報錯No active profile set, falling back to default profiles: default;
APP類的代碼如下:
/**
?*?Hello?world!
?*
?*/
@SpringBootApplication(scanBasePackages??=?{"com.miaoshaproject"})
@RestController
@MapperScan("com.miaoshaproject.dao")
//@EnableAutoConfiguration
public?class?App?
{
????@Autowired
????private?UserDoMapper?userDoMapper;
????@RequestMapping("/")
????public?String?home(){
????????UserDo?userDo?=?userDoMapper.selectByPrimaryKey(1);
????????if(userDo?==?null){
????????????return??"用戶對象不存在";
????????}else?{
????????????return?userDo.getName();
????????}
????}
????public?static?void?main(?String[]?args?)
????{
????????System.out.println(?"Hello?World!"?);
????????SpringApplication.run(App.class,args);
????}
}
2019-01-18
有沒有加application.properties文件?
2019-03-12
我的也是這樣,請問你的問題解決了嗎?什么原因啊到底
2019-01-19
這個是正常的,你沒看見最后一句話嗎?虛擬機時正常退出的,碼值為0。這個僅僅是給你一個提示。你沒有設置maven依賴的具體環境,比如測試環境,開發環境,,等等,這個不影響程序運行。