We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fc386a commit 5bfeb34Copy full SHA for 5bfeb34
spring-framework-reference/src/mvc.xml
@@ -1895,7 +1895,7 @@ public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter {
1895
1896
Calendar cal = Calendar.getInstance();
1897
int hour = cal.get(HOUR_OF_DAY);
1898
- if (openingTime <= hour < closingTime) {
+ if (openingTime <= hour && hour < closingTime) {
1899
return true;
1900
} else {
1901
response.sendRedirect("http://host.com/outsideOfficeHours.html");
0 commit comments