Doesn't the two great commandments cover the law.
"On these two commandments hang all the law and the prophets" (Mt. 22:40).
Jesus was referring to the Mosaic law. Yes, if you keep the two great commandments, you will fulfil the law of Moses, but you must still keep the law if you do.