In the fifty-second year, there was a vacancy in the post of Chief Envoy of Jiangsu. Zhang Boxing recommended Li Fajia, the Chief Envoy of Fujian, Taiwan Dao Chen (Wang Bin), and the former Imperial College Secretary Yu Zhengjian. The envoy Mou Qinyuan was promoted and took office. Soon, Zhang Boxing impeached the Qin Yuan general Zhang Lingtao, a criminal who was involved in pirates, and hid in the official office and requested to be arrested and punished. Ling Tao's elder brother Yuan Long lived in Shanghai, built sea cabins, went into and out of the ocean, owned a lot of assets, and was rich and powerful. When the criminal subordinates issued an order to search for the remaining pirates Zheng Jinxin, the Chongming navy captured a fishing boat. The owner of the boat was from Fujian, but he pretended to be registered as Huating. After checking the boat photo, it was found that it was owned by Yuan Long. Zhang Boxing was ready to pursue the case to the end. At that time, Ling Tao was working in the Galli Mansion. Yuan Long was ill and evaded arrest. However, the case was not settled but he died at home. Galli had previously impeached Bo Xing and used this matter as one of the seven charges. It happened that Gu Xie, a commoner in Shanghai County, sued Ling Tao for occupying his house. There were also several water villages harboring pirates, claiming that Ling Tao now lived in the Qinyuan government office. The emperor ordered Governor He Shou to investigate and interrogate the case. He Shou protected Ling Tao and reported the matter to the police because there was no solid evidence. The emperor also ordered Zhang Penghie and the deputy censor Axinai to investigate the case. Zhang Penghie and others reported that Yuanlong and Lingtao were good citizens and requested that Zhang Boxing be deprived of his official position. The emperor ordered a review and asked Zhang Boxing to make his own statement. Bo Xingshangshu said: "Yuanlong is a traitor. Although he is reported dead, he has rich property and many gang members. Everyone can pretend to be a thief and have obtained a license everywhere. Gu Xieyi was the first to report Lingtao. If Gu Xieyi's report was false and should be framed as usual. Because of Qin Yuan's protection, the case remained unresolved for a long time.
As a local governor, I should have prevented the incident as soon as it happened. How could I not pursue it? "After Zhang Boxing was dismissed, Zhang Penghie and others still used him to frame good people, take personal revenge, and demanded beheading. The criminal law department discussed and agreed to this suggestion, but the emperor exempted Zhang Boxing from the crime and transferred him to the capital.
Soon after, Zhang Boxing took up a post in Nanshufang, where he also acted as the deputy examiner of Cangchang and served as the chief examiner of the Shuntian Township Examination. As the Minister of Rites, the emperor awarded him a plaque of "Famous Minister of Rites and Music". In the second year, the emperor ordered him to perform sacrifices at the Chongsheng Temple in Queli. Reward the minister. The emperor mourned him and gave him the posthumous title of Qing Ke. In the early years of Guangxu, he was allowed to be attached to the Confucius Temple.
When Zhang Boxing became a Jinshi, he returned to the southern suburbs of his hometown and built a refined house. , placed thousands of volumes of books for indulgent viewing, and when he saw "Primary School", "Records of Modern Thoughts", and "Yu Lei" by Cheng and Zhu, he said: "The entrance to the sage is here! " He tried his best to find the books of Zhou Dunyi, Cheng Hao, Cheng Yi, Zhang Zai and Zhu Xi, the four great scholars of the Song Dynasty. He read and copied them while reading them for seven years. When he first became an official, he said: "The knowledge of the saints , summarized as the word 'respect', so there is nothing more important to learn than mastering respect. "So he called himself "Jing'an". He also said: "A gentleman knows righteousness, but a villain only knows profit. I am greedy for life, Buddhists are afraid of death, and martyrs pursue fame. These are all benefits. "When I was an official, I recruited people who were knowledgeable, upright and honest, and I didn't let them know that I was an official at first. I still dealt with people who had different opinions, and dealt with them openly and honestly. Working together, there is no resentment at all. He said: "You have been protected by the emperor, how dare you deprive yourself of public health for personal gain? "Yukengxue written by him has been included in various books such as "Xulu", "Zhengyitang Collected Works", and "Juji Yide"