發表文章

目前顯示的是 2月 13, 2019的文章

John Henry Alexander

圖片
For other people named John Alexander, see John Alexander (disambiguation). This article includes a list of references, related reading or external links, but its sources remain unclear because it lacks inline citations . Please help to improve this article by introducing more precise citations. ( July 2012 ) (Learn how and when to remove this template message) John Henry Alexander (1812–March 2, 1867) was a noted scientist, civil engineer and businessman, born in Annapolis, Maryland in 1812. The youngest child of William and Mary (Harwood Stockett) Alexander, he attended St. John's College in Annapolis and graduated in 1827 at the age of fifteen. Contents 1 Personal life 2 Business experience 3 Professional titles 4 Notable works 5 References 6 External links Personal life After graduating from St. John's College in 1827, he spent the next four years reading law privately, but apparently he did not take the bar exam. He, ins...

Mybatis @Insert Error: nested exception is org.apache.ibatis.reflection.ReflectionException

圖片
0 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'testStr' in 'class Test.TestModel'. the error occured in the following methods: public interface TestMapper { @Insert({"INSERT INTO PLUProps.Test VALUES(#{id}, #{testStr})"}) int insertData(TestModel testModel); } //Test private int insertData(){ TestModel testModel = new TestModel(); testModel.setId(1); testModel.setTestSTr("123123"); return testMapper.insertData(testModel); } In the entity class of TestModel, I used @Data annotation from lombok to automatically generate setter and getter methods. @Data public class TestModel implements Serializable { private static final long ...