{"id":7247,"date":"2024-03-28T16:01:01","date_gmt":"2024-03-28T08:01:01","guid":{"rendered":""},"modified":"2024-03-28T16:01:01","modified_gmt":"2024-03-28T08:01:01","slug":"Mr.\u5f20\u5c0f\u767d\uff08\u6848\u4f8b\uff1a\u57fa\u4e8eSpring\u5b9e\u73b0\u7528\u6237\u767b\u5f55\uff09","status":"publish","type":"post","link":"https:\/\/mushiming.com\/7247.html","title":{"rendered":"Mr.\u5f20\u5c0f\u767d\uff08\u6848\u4f8b\uff1a\u57fa\u4e8eSpring\u5b9e\u73b0\u7528\u6237\u767b\u5f55\uff09"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

\u57fa\u4e8eSpring\u5b9e\u73b0\u7528\u6237\u767b\u5f55<\/h2>\n

\u4e00\u3001\u6b65\u9aa4<\/h3>\n

1.\u5f15\u5165\u76f8\u5173\u4f9d\u8d56pom.xml<\/h4>\n
<<\/span>?<\/span>xml version=<\/span>\"1.0\"<\/span> encoding=<\/span>\"UTF-8\"<\/span>?<\/span>><\/span>\n<<\/span>project xmlns=<\/span>\"http:\/\/maven.apache.org\/POM\/4.0.0\"<\/span>\n         xmlns:<\/span>xsi=<\/span>\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"<\/span>\n         xsi:<\/span>schemaLocation=<\/span>\"http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"<\/span>><\/span>\n    <<\/span>modelVersion><\/span><\/span>4.0<\/span>.0<\/span><<\/span>\/<\/span>modelVersion><\/span>\n\n    <<\/span>groupId><\/span><\/span>com.<\/span>zjd<<\/span>\/<\/span>groupId><\/span>\n    <<\/span>artifactId><\/span><\/span>Part9<\/span><<\/span>\/<\/span>artifactId><\/span>\n    <<\/span>version><\/span><\/span>1.0<\/span>-<\/span>SNAPSHOT<\/span><<\/span>\/<\/span>version><\/span>\n\n    <<\/span>dependencies><\/span><\/span>\n        <<\/span>dependency><\/span><\/span>\n            <<\/span>groupId><\/span><\/span>org.<\/span>springframework<<\/span>\/<\/span>groupId><\/span>\n            <<\/span>artifactId><\/span><\/span>spring-<\/span>context<<\/span>\/<\/span>artifactId><\/span>\n            <<\/span>version><\/span><\/span>5.2<\/span>.8<\/span>.<\/span>RELEASE<\/span><<\/span>\/<\/span>version><\/span>\n        <<\/span>\/<\/span>dependency><\/span>\n        <<\/span>dependency><\/span><\/span>\n            <<\/span>groupId><\/span><\/span>commons-<\/span>logging<<\/span>\/<\/span>groupId><\/span>\n            <<\/span>artifactId><\/span><\/span>commons-<\/span>logging<<\/span>\/<\/span>artifactId><\/span>\n            <<\/span>version><\/span><\/span>1.2<\/span><<\/span>\/<\/span>version><\/span>\n        <<\/span>\/<\/span>dependency><\/span>\n        <<\/span>dependency><\/span><\/span>\n            <<\/span>groupId><\/span><\/span>org.<\/span>springframework<<\/span>\/<\/span>groupId><\/span>\n            <<\/span>artifactId><\/span><\/span>spring-<\/span>aop<<\/span>\/<\/span>artifactId><\/span>\n            <<\/span>version><\/span><\/span>5.2<\/span>.8<\/span>.<\/span>RELEASE<\/span><<\/span>\/<\/span>version><\/span>\n        <<\/span>\/<\/span>dependency><\/span>\n        <<\/span>dependency><\/span><\/span>\n            <<\/span>groupId><\/span><\/span>org.<\/span>aspectj<<\/span>\/<\/span>groupId><\/span>\n            <<\/span>artifactId><\/span><\/span>aspectjweaver<<\/span>\/<\/span>artifactId><\/span>\n            <<\/span>version><\/span><\/span>1.9<\/span>.6<\/span><<\/span>\/<\/span>version><\/span>\n        <<\/span>\/<\/span>dependency><\/span>\n        <<\/span>dependency><\/span><\/span>\n            <<\/span>groupId><\/span><\/span>aopalliance<<\/span>\/<\/span>groupId><\/span>\n            <<\/span>artifactId><\/span><\/span>aopalliance<<\/span>\/<\/span>artifactId><\/span>\n            <<\/span>version><\/span><\/span>1.0<\/span><<\/span>\/<\/span>version><\/span>\n        <<\/span>\/<\/span>dependency><\/span>\n        <<\/span>dependency><\/span><\/span>\n            <<\/span>groupId><\/span><\/span>mysql<<\/span>\/<\/span>groupId><\/span>\n            <<\/span>artifactId><\/span><\/span>mysql-<\/span>connector-<\/span>java<<\/span>\/<\/span>artifactId><\/span>\n            <<\/span>version><\/span><\/span>8.0<\/span>.30<\/span><<\/span>\/<\/span>version><\/span>\n        <<\/span>\/<\/span>dependency><\/span>\n        <<\/span>dependency><\/span><\/span>\n            <<\/span>groupId><\/span><\/span>org.<\/span>springframework<<\/span>\/<\/span>groupId><\/span>\n            <<\/span>artifactId><\/span><\/span>spring-<\/span>jdbc<<\/span>\/<\/span>artifactId><\/span>\n            <<\/span>version><\/span><\/span>5.2<\/span>.10<\/span>.<\/span>RELEASE<\/span><<\/span>\/<\/span>version><\/span>\n        <<\/span>\/<\/span>dependency><\/span>\n        <<\/span>dependency><\/span><\/span>\n            <<\/span>groupId><\/span><\/span>org.<\/span>springframework<<\/span>\/<\/span>groupId><\/span>\n            <<\/span>artifactId><\/span><\/span>spring-<\/span>tx<<\/span>\/<\/span>artifactId><\/span>\n            <<\/span>version><\/span><\/span>5.2<\/span>.10<\/span>.<\/span>RELEASE<\/span><<\/span>\/<\/span>version><\/span>\n        <<\/span>\/<\/span>dependency><\/span>\n    <<\/span>\/<\/span>dependencies><\/span>\n<<\/span>\/<\/span>project><\/span>\n<\/code><\/pre>\n

2.\u5bfc\u5165\u6570\u636e\u5e93\u6570\u636e<\/h4>\n

1\u3001\u65b0\u5efa\u6570\u636e\u5e93spring<\/p>\n

CREATE<\/span> DATABASE<\/span> spring;<\/span>\n<\/code><\/pre>\n

2\u3001\u5728spring\u6570\u636e\u5e93\u4e0b\u521b\u5efa\u8868student<\/p>\n

create table student<\/span>(<\/span>\n    id int<\/span> primary key auto_increment,<\/span>\n    username varchar not null<\/span> ,<\/span>\n    password varchar not null<\/span> ,<\/span>\n    course varchar\n)<\/span>;<\/span>\n<\/code><\/pre>\n

3\u3001\u5728student\u8868\u4e2d\u63d2\u5165\u6570\u636e<\/p>\n

insert into s_student<\/span>(<\/span>username,<\/span> password,<\/span> course)<\/span> VALUES<\/span>\n(<\/span>'\u5f20\u4e09'<\/span>,<\/span>'123'<\/span>,<\/span>'\u8ba1\u7b97\u673a'<\/span>)<\/span>\n<\/code><\/pre>\n

3.\u521b\u5efaSpring\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6applicationContext.xml<\/h4>\n
<<\/span>?<\/span>xml version=<\/span>\"1.0\"<\/span> encoding=<\/span>\"UTF-8\"<\/span>?<\/span>><\/span>\n<<\/span>beans xmlns=<\/span>\"http:\/\/www.springframework.org\/schema\/beans\"<\/span>\n       xmlns:<\/span>xsi=<\/span>\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"<\/span>\n       xmlns:<\/span>tx=<\/span>\"http:\/\/www.springframework.org\/schema\/tx\"<\/span>\n       xmlns:<\/span>context=<\/span>\"http:\/\/www.springframework.org\/schema\/context\"<\/span>\n       xsi:<\/span>schemaLocation=<\/span>\"http:<\/span>\/<\/span>\/<\/span>www.<\/span>springframework.<\/span>org\/<\/span>schema\/<\/span>beans\n        http:<\/span>\/<\/span>\/<\/span>www.<\/span>springframework.<\/span>org\/<\/span>schema\/<\/span>beans\/<\/span>spring-<\/span>beans.<\/span>xsd\n        http:<\/span>\/<\/span>\/<\/span>www.<\/span>springframework.<\/span>org\/<\/span>schema\/<\/span>context\n        http:<\/span>\/<\/span>\/<\/span>www.<\/span>springframework.<\/span>org\/<\/span>schema\/<\/span>context\/<\/span>spring-<\/span>context.<\/span>xsd\n        http:<\/span>\/<\/span>\/<\/span>www.<\/span>springframework.<\/span>org\/<\/span>schema\/<\/span>tx\n        http:<\/span>\/<\/span>\/<\/span>www.<\/span>springframework.<\/span>org\/<\/span>schema\/<\/span>tx\/<\/span>spring-<\/span>tx-<\/span>4.3<\/span>.<\/span>xsd\"><\/span>\n    <<\/span>bean id=<\/span>\"dataSource\"<\/span> class<\/span>=<\/span>\"org.springframework.jdbc.datasource.DriverManagerDataSource\"<\/span>><\/span>\n        <<\/span>property name=<\/span>\"driverClassName\"<\/span> value=<\/span>\"com.mysql.cj.jdbc.Driver\"<\/span>\/<\/span>><\/span>\n        <<\/span>property name=<\/span>\"url\"<\/span> value=<\/span>\"jdbc:mysql:\/\/localhost:3306\/spring?useSSL=false\"<\/span>\/<\/span>><\/span>\n        <<\/span>property name=<\/span>\"username\"<\/span> value=<\/span>\"root\"<\/span>\/<\/span>><\/span>\n        <<\/span>property name=<\/span>\"password\"<\/span> value=<\/span>\"root\"<\/span>\/<\/span>><\/span>\n    <<\/span>\/<\/span>bean><\/span>\n    <<\/span>bean id=<\/span>\"jdbcTemplate\"<\/span> class<\/span>=<\/span>\"org.springframework.jdbc.core.JdbcTemplate\"<\/span>><\/span>\n        <<\/span>property name=<\/span>\"dataSource\"<\/span> ref=<\/span>\"dataSource\"<\/span>\/<\/span>><\/span>\n    <<\/span>\/<\/span>bean><\/span>\n    <<\/span>bean id=<\/span>\"studentDao\"<\/span> class<\/span>=<\/span>\"com.zjd.StudentDaoImpl\"<\/span>><\/span>\n        <<\/span>property name=<\/span>\"jdbcTemplate\"<\/span> ref=<\/span>\"jdbcTemplate\"<\/span>\/<\/span>><\/span>\n    <<\/span>\/<\/span>bean><\/span>\n    <<\/span>bean id=<\/span>\"transactionManager\"<\/span> class<\/span>=<\/span>\"org.springframework.jdbc.datasource.DataSourceTransactionManager\"<\/span>><\/span>\n        <<\/span>property name=<\/span>\"dataSource\"<\/span> ref=<\/span>\"dataSource\"<\/span>\/<\/span>><\/span>\n    <<\/span>\/<\/span>bean><\/span>\n    <<\/span>tx:<\/span>annotation-<\/span>driven transaction-<\/span>manager=<\/span>\"transactionManager\"<\/span>\/<\/span>><\/span>\n<<\/span>\/<\/span>beans><\/span>\n<\/code><\/pre>\n

4.\u521b\u5efastudent\u7684\u5b9e\u4f53\u7c7bStudent.java<\/h4>\n
package<\/span> com.<\/span>zjd<\/span>;<\/span>\n\npublic<\/span> class<\/span> Student<\/span> { \n   <\/span>\n    private<\/span> int<\/span> id;<\/span>\n    private<\/span> String<\/span> username;<\/span>\n    private<\/span> String<\/span> password;<\/span>\n    private<\/span> String<\/span> course;<\/span>\n\n    @Override<\/span>\n    public<\/span> String<\/span> toString<\/span>(<\/span>)<\/span> { \n   <\/span>\n        return<\/span> \"Student{\"<\/span> +<\/span>\n                \"id=\"<\/span> +<\/span> id +<\/span>\n                \", username='\"<\/span> +<\/span> username +<\/span> '\\''<\/span> +<\/span>\n                \", password='\"<\/span> +<\/span> password +<\/span> '\\''<\/span> +<\/span>\n                \", course='\"<\/span> +<\/span> course +<\/span> '\\''<\/span> +<\/span>\n                '}'<\/span>;<\/span>\n    }<\/span>\n\n    public<\/span> int<\/span> getId<\/span>(<\/span>)<\/span> { \n   <\/span>\n        return<\/span> id;<\/span>\n    }<\/span>\n\n    public<\/span> void<\/span> setId<\/span>(<\/span>int<\/span> id)<\/span> { \n   <\/span>\n        this<\/span>.<\/span>id =<\/span> id;<\/span>\n    }<\/span>\n\n    public<\/span> String<\/span> getUsername<\/span>(<\/span>)<\/span> { \n   <\/span>\n        return<\/span> username;<\/span>\n    }<\/span>\n\n    public<\/span> void<\/span> setUsername<\/span>(<\/span>String<\/span> username)<\/span> { \n   <\/span>\n        this<\/span>.<\/span>username =<\/span> username;<\/span>\n    }<\/span>\n\n    public<\/span> String<\/span> getPassword<\/span>(<\/span>)<\/span> { \n   <\/span>\n        return<\/span> password;<\/span>\n    }<\/span>\n\n    public<\/span> void<\/span> setPassword<\/span>(<\/span>String<\/span> password)<\/span> { \n   <\/span>\n        this<\/span>.<\/span>password =<\/span> password;<\/span>\n    }<\/span>\n\n    public<\/span> String<\/span> getCourse<\/span>(<\/span>)<\/span> { \n   <\/span>\n        return<\/span> course;<\/span>\n    }<\/span>\n\n    public<\/span> void<\/span> setCourse<\/span>(<\/span>String<\/span> course)<\/span> { \n   <\/span>\n        this<\/span>.<\/span>course =<\/span> course;<\/span>\n    }<\/span>\n}<\/span>\n\n<\/code><\/pre>\n

5.\u521b\u5efaStudent\u7684Dao\u5c42\u63a5\u53e3\u6587\u4ef6StudentDao.java<\/h4>\n
package<\/span> com.<\/span>zjd<\/span>;<\/span>\n\nimport<\/span> java.<\/span>util.<\/span><\/span>List<\/span><\/span>;<\/span>\n\npublic<\/span> interface<\/span> StudentDao<\/span> { \n   <\/span>\n    public<\/span> List<\/span><<\/span>Student<\/span>><\/span><\/span> findAllStudent<\/span>(<\/span>)<\/span>;<\/span>\n}<\/span>\n\n<\/code><\/pre>\n

6.\u521b\u5efaStudent\u7684Dao\u5c42\u63a5\u53e3\u6587\u4ef6\u7684\u5b9e\u73b0\u7c7bStudentDaoImpl.java<\/h4>\n
package<\/span> com.<\/span>zjd<\/span>;<\/span>\n\nimport<\/span> org.<\/span>springframework.<\/span>jdbc.<\/span>core.<\/span><\/span>BeanPropertyRowMapper<\/span><\/span>;<\/span>\nimport<\/span> org.<\/span>springframework.<\/span>jdbc.<\/span>core.<\/span><\/span>JdbcTemplate<\/span><\/span>;<\/span>\nimport<\/span> org.<\/span>springframework.<\/span>jdbc.<\/span>core.<\/span><\/span>RowMapper<\/span><\/span>;<\/span>\n\nimport<\/span> java.<\/span>util.<\/span><\/span>List<\/span><\/span>;<\/span>\n\npublic<\/span> class<\/span> StudentDaoImpl<\/span> implements<\/span> StudentDao<\/span> { \n   <\/span>\n    private<\/span> JdbcTemplate<\/span> jdbcTemplate;<\/span>\n\n    public<\/span> void<\/span> setJdbcTemplate<\/span>(<\/span>JdbcTemplate<\/span> jdbcTemplate)<\/span> { \n   <\/span>\n        this<\/span>.<\/span>jdbcTemplate =<\/span> jdbcTemplate;<\/span>\n    }<\/span>\n\n    public<\/span> List<\/span><<\/span>Student<\/span>><\/span><\/span> findAllStudent<\/span>(<\/span>)<\/span> { \n   <\/span>\n        String<\/span> sql=<\/span>\"select * from student\"<\/span>;<\/span>\n        RowMapper<\/span><<\/span>Student<\/span>><\/span><\/span> rowMapper=<\/span>new<\/span> BeanPropertyRowMapper<\/span><<\/span>Student<\/span>><\/span><\/span>(<\/span>Student<\/span>.<\/span>class<\/span>)<\/span>;<\/span>\n        return<\/span> this<\/span>.<\/span>jdbcTemplate.<\/span>query<\/span>(<\/span>sql,<\/span>rowMapper)<\/span>;<\/span>\n    }<\/span>\n}<\/span>\n\n<\/code><\/pre>\n

7.\u5c06Student\u7684Dao\u5c42\u5b9e\u73b0\u7c7b\u52a0\u8f7d\u5230Spring\u7684Bean\u5bf9\u8c61\u4e2d\uff0c\u5e76\u5f00\u59cb\u4e8b\u52a1\u7ba1\u7406<\/h4>\n
<<\/span>!<\/span>--<\/span>  \u4e0a\u56fe\u6211\u5df2\u52a0\u8f7d\u8fc7  --<\/span>><\/span>\n <<\/span>bean id=<\/span>\"jdbcTemplate\"<\/span> class<\/span>=<\/span>\"org.springframework.jdbc.core.JdbcTemplate\"<\/span>><\/span>\n        <<\/span>property name=<\/span>\"dataSource\"<\/span> ref=<\/span>\"dataSource\"<\/span>\/<\/span>><\/span>\n    <<\/span>\/<\/span>bean><\/span>\n    <<\/span>bean id=<\/span>\"studentDao\"<\/span> class<\/span>=<\/span>\"com.zjd.StudentDaoImpl\"<\/span>><\/span>\n        <<\/span>property name=<\/span>\"jdbcTemplate\"<\/span> ref=<\/span>\"jdbcTemplate\"<\/span>\/<\/span>><\/span>\n    <<\/span>\/<\/span>bean><\/span>\n    <<\/span>bean id=<\/span>\"transactionManager\"<\/span> class<\/span>=<\/span>\"org.springframework.jdbc.datasource.DataSourceTransactionManager\"<\/span>><\/span>\n        <<\/span>property name=<\/span>\"dataSource\"<\/span> ref=<\/span>\"dataSource\"<\/span>\/<\/span>><\/span>\n    <<\/span>\/<\/span>bean><\/span>\n    <<\/span>tx:<\/span>annotation-<\/span>driven transaction-<\/span>manager=<\/span>\"transactionManager\"<\/span>\/<\/span>><\/span>\n<\/code><\/pre>\n

8.\u521b\u5efaStudent\u5b9e\u4f53\u7c7b\u7684Controller\u5c42\u6d4b\u8bd5\u8fd0\u884c\u7ed3\u679c<\/h4>\n
package<\/span> com.<\/span>zjd<\/span>;<\/span>\n\nimport<\/span> org.<\/span>springframework.<\/span>context.<\/span><\/span>ApplicationContext<\/span><\/span>;<\/span>\nimport<\/span> org.<\/span>springframework.<\/span>context.<\/span>support.<\/span><\/span>ClassPathXmlApplicationContext<\/span><\/span>;<\/span>\n\nimport<\/span> java.<\/span>util.<\/span><\/span>List<\/span><\/span>;<\/span>\nimport<\/span> java.<\/span>util.<\/span><\/span>Scanner<\/span><\/span>;<\/span>\n\npublic<\/span> class<\/span> StudentController<\/span> { \n   <\/span>\n    public<\/span> static<\/span> void<\/span> main<\/span>(<\/span>String<\/span>[<\/span>]<\/span> args)<\/span> { \n   <\/span>\n        System<\/span>.<\/span>out.<\/span>println<\/span>(<\/span>\"\u6b22\u8fce\u6765\u5230\u5b66\u751f\u7ba1\u7406\u7cfb\u7edf\"<\/span>)<\/span>;<\/span>\n        System<\/span>.<\/span>out.<\/span>println<\/span>(<\/span>\"\u8f93\u5165\u7528\u6237\u540d\uff1a\"<\/span>)<\/span>;<\/span>\n        Scanner<\/span> scanner =<\/span> new<\/span> Scanner<\/span>(<\/span>System<\/span>.<\/span>in)<\/span>;<\/span>\n        String<\/span> name =<\/span> scanner.<\/span>nextLine<\/span>(<\/span>)<\/span>;<\/span>\n        ApplicationContext<\/span> applicationContext =<\/span> new<\/span> ClassPathXmlApplicationContext<\/span>(<\/span>\"applicationContext.xml\"<\/span>)<\/span>;<\/span>\n        StudentDao<\/span> studentDao =<\/span> (<\/span>StudentDao<\/span>)<\/span> applicationContext.<\/span>getBean<\/span>(<\/span>\"studentDao\"<\/span>)<\/span>;<\/span>\n        List<\/span><<\/span>Student<\/span>><\/span><\/span> students =<\/span> studentDao.<\/span>findAllStudent<\/span>(<\/span>)<\/span>;<\/span>\n        for<\/span> (<\/span>Student<\/span> student :<\/span> students\n        )<\/span> { \n   <\/span>\n            System<\/span>.<\/span>out.<\/span>println<\/span>(<\/span>name.<\/span>equals<\/span>(<\/span>student.<\/span>getUsername<\/span>(<\/span>)<\/span>)<\/span>)<\/span>;<\/span>\n            if<\/span> (<\/span>name.<\/span>equals<\/span>(<\/span>student.<\/span>getUsername<\/span>(<\/span>)<\/span>)<\/span>)<\/span> { \n   <\/span>\n                System<\/span>.<\/span>out.<\/span>println<\/span>(<\/span>\"\u8bf7\u8f93\u5165\"<\/span> +<\/span> student.<\/span>getUsername<\/span>(<\/span>)<\/span> +<\/span> \"\u7684\u5bc6\u7801\uff1a\"<\/span>)<\/span>;<\/span>\n                String<\/span> password =<\/span> scanner.<\/span>nextLine<\/span>(<\/span>)<\/span>;<\/span>\n                if<\/span> (<\/span>password.<\/span>equals<\/span>(<\/span>student.<\/span>getPassword<\/span>(<\/span>)<\/span>)<\/span>)<\/span> { \n   <\/span>\n                    System<\/span>.<\/span>out.<\/span>println<\/span>(<\/span>\"\u7528\u6237\u767b\u5f55\u6210\u529f\"<\/span>)<\/span>;<\/span>\n                    System<\/span>.<\/span>out.<\/span>println<\/span>(<\/span>student.<\/span>getUsername<\/span>(<\/span>)<\/span> +<\/span> \"\u662f\"<\/span> +<\/span> student.<\/span>getCourse<\/span>(<\/span>)<\/span> +<\/span> \"\u73ed\u7684\"<\/span>)<\/span>;<\/span>\n                    return<\/span>;<\/span>\n                }<\/span> else<\/span> { \n   <\/span>\n                    System<\/span>.<\/span>out.<\/span>println<\/span>(<\/span>\"\u5bc6\u7801\u9519\u8bef\"<\/span>)<\/span>;<\/span>\n                    return<\/span>;<\/span>\n                }<\/span>\n            }<\/span> else<\/span> { \n   <\/span>\n                System<\/span>.<\/span>out.<\/span>println<\/span>(<\/span>\"\u8d26\u53f7\u9519\u8bef\"<\/span>)<\/span>;<\/span>\n                return<\/span>;<\/span>\n            }<\/span>\n        }<\/span>\n    }<\/span>\n}<\/span>\n\n<\/code><\/pre>\n

\u4e8c\u3001\u9879\u76ee\u7ed3\u6784<\/h3>\n

\"Mr.\u5f20\u5c0f\u767d\uff08\u6848\u4f8b\uff1a\u57fa\u4e8eSpring\u5b9e\u73b0\u7528\u6237\u767b\u5f55\uff09<\/p>\n

\u4e09\u3001\u672c\u6b21\u5b8c\u6210\u6848\u4f8b\uff1a\u57fa\u4e8eSpring\u5b9e\u73b0\u7528\u6237\u767b\u5f55<\/h3>\n

\u901a\u8fc7\u6240\u5b66\u7684Spring\u6570\u636e\u5e93\u7f16\u7a0b\u77e5\u8bc6\uff0c\u5b9e\u73b0\u5b66\u751f\u7ba1\u7406\u7cfb\u7edf\u7684\u767b\u5f55\u529f\u80fd\u3002<\/h4>\n

\u672c\u6848\u4f8b\u8981\u6c42\uff1a<\/h4>\n

\uff081\uff09\u5b66\u751f\u5728\u63a7\u5236\u53f0\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u5982\u679c\u7528\u6237\u540d\u548c\u5bc6\u7801\u6b63\u786e\uff0c\u5219\u663e\u793a\u7528\u6237\u6240\u5c5e\u73ed\u7ea7\uff1b\u5982\u679c\u767b\u9646\u5931\u8d25\u5219\u663e\u793a\u767b\u9646\u5931\u8d25\u3002<\/h4>\n

\u56db\u3001\u91cd\u8981\u8baf\u606f\uff01\uff01\uff01\uff01\uff01<\/h2>\n

\u5404\u4f4d\u5c0f\u4f19\u4f34\u6709\u7591\u95ee\u53ef\u4ee5\u79c1\u804a\u6211\uff0c\u6211\u4f1a\u5728\u6bcf\u5468\u65e5\u7edf\u4e00\u67e5\u770b\u56de\u590d<\/h3>\n

\u8def\u8fc7\u7684\u5c0f\u4f19\u4f34\uff0c\u8be5\u7bc7\u6587\u7ae0\u5982\u679c\u5bf9\u4f60\u6709\u5e2e\u52a9\uff0c\u8bf7\u7559\u4e0b\u4f60\u7684\u5c0f\u624b(\ud83d\udc4d)\u518d\u8d70\u54e6\uff0c<\/h3>\n

\u4e94\u3001\u4e0b\u65b9\u8bc4\u8bba\u533a\u89c1\u8be5\u6848\u4f8b\u6e90\u4ee3\u7801<\/h2>\n

\u60a8\u7684\u652f\u6301\u5c06\u662f\u6211\u4e00\u76f4\u505a\u4e0b\u53bb\u7684\u4e0d\u7aed\u52a8\u529b\uff01\uff01\uff01<\/h3>\n","protected":false},"excerpt":{"rendered":"Mr.\u5f20\u5c0f\u767d\uff08\u6848\u4f8b\uff1a\u57fa\u4e8eSpring\u5b9e\u73b0\u7528\u6237\u767b\u5f55\uff09\u4f7f\u7528IDEA\u642d\u5efaSpring\u73af\u5883\u5728\u73af\u5883\u4e2d\u5b9e\u73b0\u7528\u6237\u767b\u5f55\u7cfb\u7edf\u4e3b\u8981\u4e86\u89e3\uff1a1\u3001SpringJDBC\u548cJdbcT...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7247"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=7247"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7247\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=7247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=7247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=7247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}