spring boot 开发restful api 实例

https://blog.csdn.net/sun_t89/article/details/51912905

https://blog.csdn.net/qiangcuo6087/article/details/79137234

https://www.cnblogs.com/fzng/p/7256757.html

对restful的理解:

http://www.ruanyifeng.com/blog/2011/09/restful.html

http://www.ruanyifeng.com/blog/2014/05/restful_api.html

application.properties文件中文显示其编码

右击该properties文件--properties--Resource--Text file encoding,选中other,选择其它编码方式,如UTF-8或GBK,这样就能在properties里面输入中文,而不会自动转成Unicode了。另外,其实如果key value是中文,也不一定读不出来。比如如下的情况,打开文件流时选择了正确的编码方式,这样用properties的load的方法可以加载中文的。(但有的情况下你选择不了编码方式自然就有问题了)

猜你喜欢

转载自blog.csdn.net/dongyuguoai/article/details/81007923