---[main]. E.springbootsamplehelloworldapplication:no Active profile set, falling BA CK to default Profiles:default2017-06-24 18:37:54.215 INFO 3712---[main] ationconfigembeddedwebapplicationcontext:refreshing Org.springframework.boot[email protected]4f51b3e0:startup Date [Sat June 18:37:54 CST 2017]; Root of context Hierarchy2017-06-24 18:37:59.653 INFO 3712---[main] s.b.c.e.t.tomcatembeddedservletcontainer:tomcat initialized with Port (s): 8080 (http)2017-06-24 18:37:59.692 INFO 3712---[main]
] com.test.HelloController:Starting Hellocontroll Er on desktop-m8dr5s3 with PID 2124 (F:\MyEclipse\mywork\spinrBoot-hello\target\classes started by 592302116 in F:\MYECLI pse\mywork\spinrboot-Hello)2017-08-12 13:51:00.113 INFO 2124---[main] com.test.HelloController:No active profile set, Falling Back todefaultProfilesdefault2017-08-12 13:51:00.160 INFO 2124---[main] ationconfigembeddedwebapplicationcontext:refreshing ORG.SPRINGF Ramework.boot[email protected]5b0de4ee:startup Date [Sat 13:51:00
] Ationconfigembeddedwebapplicationcontext:refreshing org.springframework.boot[emailprotected]69cc1627: startup Date [Tue Oct 08:43:47 CST 2016]; Root of context hierarchy2016-10-18 08:43:49.969 INFO 46---[main] s.b.c.e.t.tomcatembeddedservletcontainer:tomcat initialized with Port (s): 8080 (http) 2016-10-18 08:43:49.983 INFO 4640---[main] o.apache.catalina.core.standardservice:starting service tomcat2016-10-1 8 08:43:49.984 INFO 4640---[main] org.apache.catalina.core.StandardEngine:Starting Se
\target\classes started by LW in D:\TOOL\IDEASpace\comliwen)2018-06-08 20:31:05.288 INFO 47016---[restartedmain] com.liwen.Appmin:No active profile set, falling back to default Profiles:default2018-06-08 20:31:05.539 INFO 47016---[Restartedmain] ationconfigembeddedwebapplicationcontext:refreshing Org.springframework.boot[email protected]7a5c4347:startup Date [Fri June 20:31:05 CST 2018]; Root of context Hierarchy2018-06-08 20:31:07.800 INFO 47016---[restartedmain] s.b.c.e.t.tomcatembeddedservlet
these methods are more powerful. After insertion, you may find that you need to modify it, so here are some ways to modify it. If the need for drastic changes, what is a substantial change, such as the Post1 Title,slug,author and so on have been modified, my understanding is greater than a key modification is called large-scale modification. Modify a thing, you have to find him first, so the query method is very important, unfortunately, this preparation will be later. Let's change it by lookin
] O.apache.catalina.core.stan Dardservice:starting service Tomcat 2016-12-03 08:58:00.526 INFO 5128---[main] org.apache.catalina.core. Standardengine:starting Servlet engine:apache tomcat/8.5.6 2016-12-03 08:58:00.624 INFO 5128---[ost-startstop-1] o. A.c.c.c.[tomcat]. [localhost]. [/]: Initializing Spring embedded Webapplicationcontext 2016-12-03 08:58:00.624 INFO 5128---[ost-startstop-1] o. S.web.context.c
---[main] O.apache.catalina.core.stan Dardservice:starting service Tomcat 2016-12-03 08:58:00.526 INFO 5128---[main] org.apache.catalina.core. Standardengine:starting Servlet engine:apache tomcat/8.5.6 2016-12-03 08:58:00.624 INFO 5128---[ost-startstop-1] o. A.c.c.c.[tomcat]. [localhost]. [/]: Initializing Spring embedded webapplicationcontext 2016-12-03 08:58:00.624 INFO 5128---[ost-startstop-1] o. S.web.c
back todefaultProfilesdefault2018-Geneva-Geneva Ten: -:24.218INFO6358---[main] ationconfigembeddedwebapplicationcontext:refreshing Org.springframework.boot[email protected]1b372 88:startup Date [Sat MarGeneva Ten: -: -Cst2018]; Root of context Hierarchy2018-Geneva-Geneva Ten: -:27.001INFO6358---[main] s.b.c.e.t.tomcatembeddedservletcontainer:tomcat initialized with Port (s):8080(HTTP)2018-Geneva-Geneva Ten: -:27.025INFO6358---[main] o.apache.catalina.core.standardservice:starting service [Tomca
; Initmethodname=null; Destroymethodname= (inferred); Defined in class path resource [Org/springframework/boot/autoconfigure/jdbc/datasouRceconfiguration$hikari.class]] 2017-12-12 17:57:23.464 INFO 6176---[main] s.b.c.e.t.tomcatembeddedservletcontainer:tomcat initialized with Port (s): 8080 (http)2017-12-12 17:57:23.480 INFO 6176---[main] o.apache.catalina.core.standardservice:starting service [Tomcat]2017-12-12 17:57:23.480 INFO 6176---[main] org.apache.catalina.core.StandardEngine:Starting Ser
used to create an object of a linked list data structure.A) LinkedListB) ArrayListC) CollectionD) HashMap40. Analyze the following Java code, which runs as a result (C).Import java.io.*;public class b{public static void Main (string [] args) {int i=12;System.out.println (i+=i-=i*=i);}}A) 100B) 0C)-120D) The program cannot be compiled41. The steps to use the JDBC transaction are (C,A,B,D) (multiple selection)A) Canceling the connection transaction Auto-Submit methodB) An exception rollback trans
Jfinal can remove the primary key after saving the object, even if the primary key is the database self-growing.Today, I inadvertently found that jfinal save the object can be removed from the primary key, my database table primary keys are self-increment. Like whatBlog blog = getmodel (blog.class);//There is no ID stored hereBlog.save ();System.out.println (Blog.getint ("id"));//It can be taken out here.Today the study of half a day, finally in the help of everyone finally understand how to ach
through a scrollable result set, the following is correct (aA) pst=con.preparestatement (SQL, resultset.type_scroll_sensitive,resultset.concur_updatable)B) pst=con.preparestatement (SQL, resultset.type_scroll_sensitive,resultset.concur_read_only)C) pst=con.preparestatement (SQL, ResU ltset.type_scroll_sensitive)D) pst
used to create an object of a linked list data structure.A) LinkedListB) ArrayListC) CollectionD) HashMap40. Analyze the following Java code, which runs as a result (C).Import java.io.*;public class b{public static void Main (string [] args) {int i=12;System.out.println (i+=i-=i*=i);}}A) 100B) 0C)-120D) The program cannot be compiled41. The steps to use the JDBC transaction are (C,A,B,D) (multiple selection)A) Canceling the connection transaction Auto-Submit methodB) An exception rollback trans
used to create an object of a linked list data structure.A) LinkedListB) ArrayListC) CollectionD) HashMap40. Analyze the following Java code, which runs as a result (C).Import java.io.*;public class b{public static void Main (string [] args) {int i=12;System.out.println (i+=i-=i*=i);}}A) 100B) 0C)-120D) The program cannot be compiled41. The steps to use the JDBC transaction are (C,A,B,D) (multiple selection)A) Canceling the connection transaction Auto-Submit methodB) An exception rollback trans
JDBC Connection MySQL Database
First download connector/j address: http://www.mysql.com/downloads/connector/j/This is the official MySQL provided connection mode:Extract the jar library file after decompression, you need to import the library file in the projectI'm using eclipse:
Java connection MySQL is a bit cumbersome, so write a class to open or close the database first:
The code is as follows
Copy Code
Dbhelper.java Package Com.hu.demo;Import
Lili in/users/lili/Baidu Cloud Sync disk/gitdir/try-spring-boot) 2016-05-17 11:25:28.364 INFO 1571---[ Main] Samplecontroller:no Active profile set, falling back to default profiles:default2016-0 5-17 11:25:28.522 INFO 1571---[main] ationconfigembeddedwebapplicationcontext:refreshing Org.springframewo Rk.boot[emailprotected]17baae6e:startup Date [Tue May 11:25:28 CST 2016]; Root of context hierarchy2016-05-17 11:25:31.307 INFO 1571---[main] s.b.c.e.t.tomcatembeddedservleTcontainer:tomcat initia
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.