Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.8k views
in Technique[技术] by (71.8m points)

java - How to set a spring controller in such a way, that only particular duration (or between time) it can be accessed other than that it will give error

My code is in Springboot based app, I have a post controller which takes forms data.

I need to design it such that it will take the request only within the given time slab which I provided

for example 12:00AM to 12:30AM then only it would work else it would throw an error like out of time etc.

how to do that?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...