Ứng dụng spring boot nên được tạo từ spring initializr (start.spring.io)
If mvn is installed on your computer:
mvn package
mvn spring-boot:run
or
java -jar target/file.jar
If not
./mvnw package
./mvnw spring-boot:run
Friday, October 4, 2019
Sunday, September 29, 2019
Spring boot
Change directory to the source codecd /where/the/pom/file/ismvn install
Run application server
mvn spring-boot:run
Application will be started with port
8080Friday, September 27, 2019
What is a Spring Bean
A "Spring Bean" is simply a Java object.
When Java objects are created by the Spring Container, then Spring refers to them as "Spring Beans".
Spring Beans are created from normal Java classes .... just like Java objects.
---
Here's a blurb from the Spring Reference Manual

Source: https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-introduction
---
In the early days, there was a term called "Java Beans". Spring Beans have a similar concept but Spring Beans do not follow all of the rigorous requirements of Java Beans.
---
In summary, whenever you see "Spring Bean", just think Java object. :-)
Thursday, September 26, 2019
Cài đặt môi trường code trên ubuntu
apt-get update && apt-get upgrade
jdksudo apt install openjdk-8-jdk
Tomcat
apt-get install tomcat8
cd /usr/share/tomcat8
sudo ln -s /var/lib/tomcat8/conf conf
sudo ln -s /var/log/tomcat8 log
sudo ln -s /etc/tomcat8/policy.d/03catalina.policy conf/catalina.policy
sudo chmod -R a+rwx /usr/share/tomcat8/conf
systemctl stop tomcat8 // để chạy tomcat từ eclipse trên cổng 8080
Tải eclipse installer từ eclipse.comThursday, July 19, 2018
Kinh nghiệm build môi trường
Dự án: website quản lý bán vé cho VFF liên đoàn bóng đá việt nam
Tôi đã có sẵn source và dump của database
Khi build project thì
build bằng dòng lệnh => lỗi
build bằng eclipse => có thể chạy được nhưng bất ổn định (lúc lỗi lúc không)
mvn clean
mvn install
Nếu build lỗi vài lân => xóa thư mục .m2 đi để mvn tự kéo về
Tôi đã có sẵn source và dump của database
Khi build project thì
build bằng dòng lệnh => lỗi
build bằng eclipse => có thể chạy được nhưng bất ổn định (lúc lỗi lúc không)
mvn clean
mvn install
Nếu build lỗi vài lân => xóa thư mục .m2 đi để mvn tự kéo về
Tuesday, July 17, 2018
pleiades: Tomcat JDK MySQL Eclipse setbox
http://mergedoc.osdn.jp/
http://ftp.jaist.ac.jp/pub/mergedoc/
http://ftp.jaist.ac.jp/pub/mergedoc/
Subscribe to:
Posts (Atom)