| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,33 @@ | |||
| 1 | + package info.xiaomo.freemarker; | ||
| 2 | + | ||
| 3 | + import org.springframework.boot.SpringApplication; | ||
| 4 | + import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
| 5 | + import org.springframework.boot.autoconfigure.domain.EntityScan; | ||
| 6 | + import org.springframework.context.annotation.ComponentScan; | ||
| 7 | + import org.springframework.context.annotation.Configuration; | ||
| 8 | + | ||
| 9 | + /** | ||
| 10 | + * 把今天最好的表现当作明天最新的起点..~ | ||
| 11 | + * いま 最高の表現 として 明日最新の始発..~ | ||
| 12 | + * Today the best performance as tomorrow newest starter! | ||
| 13 | + * Created by IntelliJ IDEA. | ||
| 14 | + * | ||
| 15 | + * @author: xiaomo | ||
| 16 | + * @github: https://github.com/qq83387856 | ||
| 17 | + * @email: hupengbest@163.com | ||
| 18 | + * @QQ_NO: 83387856 | ||
| 19 | + * @Date: 2016/4/1 15:38 | ||
| 20 | + * @Copyright(©) 2015 by xiaomo. | ||
| 21 | + **/ | ||
| 22 | + @Configuration | ||
| 23 | + @EnableAutoConfiguration | ||
| 24 | + @ComponentScan("info.xiaomo") | ||
| 25 | + @EntityScan("info.xiaomo.*.model") | ||
| 26 | + public class FreemarkerMain { | ||
| 27 | + | ||
| 28 | + public static void main(String[] args) throws Exception { | ||
| 29 | + SpringApplication.run(FreemarkerMain.class, args); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + | ||
| 33 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + <!DOCTYPE html> | ||
| 2 | + <html> | ||
| 3 | + <head lang="en"> | ||
| 4 | + <meta charset="UTF-8" /> | ||
| 5 | + <title></title> | ||
| 6 | + </head> | ||
| 7 | + <body> | ||
| 8 | + FreeMarker模板引擎 | ||
| 9 | + <h1>${host}</h1> | ||
| 10 | + </body> | ||
| 11 | + </html> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> | |
| 2 | - <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| 3 | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 2 | + <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 3 | + xmlns="http://maven.apache.org/POM/4.0.0" | ||
| 4 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| 5 | 5 | <parent> | |
| 6 | 6 | <artifactId>xiaomo</artifactId> | |
@@ -11,5 +11,22 @@ | |||
| 11 | 11 | ||
| 12 | 12 | <artifactId>mybatis</artifactId> | |
| 13 | 13 | ||
| 14 | + <dependencies> | ||
| 15 | + <dependency> | ||
| 16 | + <groupId>info.xiaomo</groupId> | ||
| 17 | + <artifactId>core</artifactId> | ||
| 18 | + <version>1.0.0-SNAPSHOT</version> | ||
| 19 | + </dependency> | ||
| 20 | + </dependencies> | ||
| 14 | 21 | ||
| 22 | + | ||
| 23 | + | ||
| 24 | + <build> | ||
| 25 | + <plugins> | ||
| 26 | + <plugin> | ||
| 27 | + <groupId>org.springframework.boot</groupId> | ||
| 28 | + <artifactId>spring-boot-maven-plugin</artifactId> | ||
| 29 | + </plugin> | ||
| 30 | + </plugins> | ||
| 31 | + </build> | ||
| 15 | 32 | </project> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + logging.config=classpath:config/logback-dev.xml | ||
| 2 | + server.port=8080 | ||
| 3 | + server.session.timeout=1800 | ||
| 4 | + server.max-http-header-size=20971520 | ||
| 5 | + | ||
| 6 | + spring.jackson.date-format=yyyy-MM-dd HH:mm:ss | ||
| 7 | + spring.jackson.time-zone=GMT+8 | ||
| 8 | + | ||
| 9 | + #other | ||
| 10 | + banner.location=config/banner-girl.txt | ||
| 11 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,19 @@ | |||
| 1 | + .::::. | ||
| 2 | + .::::::::. | ||
| 3 | + ::::::::::: | ||
| 4 | + ..:::::::::::' | ||
| 5 | + '::::::::::::' | ||
| 6 | + .:::::::::: | ||
| 7 | + '::::::::::::::.. | ||
| 8 | + ..::::::::::::. | ||
| 9 | + ``:::::::::::::::: | ||
| 10 | + ::::``:::::::::' .:::. | ||
| 11 | + ::::' ':::::' .::::::::. | ||
| 12 | + .::::' :::: .:::::::'::::. | ||
| 13 | + .:::' ::::: .:::::::::' ':::::. | ||
| 14 | + .::' :::::.:::::::::' ':::::. | ||
| 15 | + .::' ::::::::::::::' ``::::. | ||
| 16 | + ...::: ::::::::::::' ``::. | ||
| 17 | + ```` ':. ':::::::::' ::::.. | ||
| 18 | + '.:::::' ':'````.. | ||
| 19 | + :: Spring Boot :: (v1.4.1.RELEASE) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,17 @@ | |||
| 1 | + <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | + | ||
| 3 | + <configuration scan="true"> | ||
| 4 | + | ||
| 5 | + <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"> | ||
| 6 | + <encoder charset="UTF-8"> | ||
| 7 | + <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level - %msg%n</pattern> | ||
| 8 | + </encoder> | ||
| 9 | + </appender> | ||
| 10 | + | ||
| 11 | + <root level="INFO"> | ||
| 12 | + <appender-ref ref="stdout"/> | ||
| 13 | + </root> | ||
| 14 | + | ||
| 15 | + <logger name="info.xiaomo" level="DEBUG"/> | ||
| 16 | + | ||
| 17 | + </configuration> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,33 @@ | |||
| 1 | + package info.xiaomo.velocity; | ||
| 2 | + | ||
| 3 | + import org.springframework.boot.SpringApplication; | ||
| 4 | + import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
| 5 | + import org.springframework.boot.autoconfigure.domain.EntityScan; | ||
| 6 | + import org.springframework.context.annotation.ComponentScan; | ||
| 7 | + import org.springframework.context.annotation.Configuration; | ||
| 8 | + | ||
| 9 | + /** | ||
| 10 | + * 把今天最好的表现当作明天最新的起点..~ | ||
| 11 | + * いま 最高の表現 として 明日最新の始発..~ | ||
| 12 | + * Today the best performance as tomorrow newest starter! | ||
| 13 | + * Created by IntelliJ IDEA. | ||
| 14 | + * | ||
| 15 | + * @author: xiaomo | ||
| 16 | + * @github: https://github.com/qq83387856 | ||
| 17 | + * @email: hupengbest@163.com | ||
| 18 | + * @QQ_NO: 83387856 | ||
| 19 | + * @Date: 2016/4/1 15:38 | ||
| 20 | + * @Copyright(©) 2015 by xiaomo. | ||
| 21 | + **/ | ||
| 22 | + @Configuration | ||
| 23 | + @EnableAutoConfiguration | ||
| 24 | + @ComponentScan("info.xiaomo") | ||
| 25 | + @EntityScan("info.xiaomo.*.model") | ||
| 26 | + public class VelocityMain { | ||
| 27 | + | ||
| 28 | + public static void main(String[] args) throws Exception { | ||
| 29 | + SpringApplication.run(VelocityMain.class, args); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + | ||
| 33 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + logging.config=classpath:config/logback-dev.xml | ||
| 2 | + server.port=8080 | ||
| 3 | + server.session.timeout=1800 | ||
| 4 | + server.max-http-header-size=20971520 | ||
| 5 | + | ||
| 6 | + spring.jackson.date-format=yyyy-MM-dd HH:mm:ss | ||
| 7 | + spring.jackson.time-zone=GMT+8 | ||
| 8 | + | ||
| 9 | + #other | ||
| 10 | + banner.location=config/banner-girl.txt | ||
| 11 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,19 @@ | |||
| 1 | + .::::. | ||
| 2 | + .::::::::. | ||
| 3 | + ::::::::::: | ||
| 4 | + ..:::::::::::' | ||
| 5 | + '::::::::::::' | ||
| 6 | + .:::::::::: | ||
| 7 | + '::::::::::::::.. | ||
| 8 | + ..::::::::::::. | ||
| 9 | + ``:::::::::::::::: | ||
| 10 | + ::::``:::::::::' .:::. | ||
| 11 | + ::::' ':::::' .::::::::. | ||
| 12 | + .::::' :::: .:::::::'::::. | ||
| 13 | + .:::' ::::: .:::::::::' ':::::. | ||
| 14 | + .::' :::::.:::::::::' ':::::. | ||
| 15 | + .::' ::::::::::::::' ``::::. | ||
| 16 | + ...::: ::::::::::::' ``::. | ||
| 17 | + ```` ':. ':::::::::' ::::.. | ||
| 18 | + '.:::::' ':'````.. | ||
| 19 | + :: Spring Boot :: (v1.4.1.RELEASE) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,17 @@ | |||
| 1 | + <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | + | ||
| 3 | + <configuration scan="true"> | ||
| 4 | + | ||
| 5 | + <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"> | ||
| 6 | + <encoder charset="UTF-8"> | ||
| 7 | + <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level - %msg%n</pattern> | ||
| 8 | + </encoder> | ||
| 9 | + </appender> | ||
| 10 | + | ||
| 11 | + <root level="INFO"> | ||
| 12 | + <appender-ref ref="stdout"/> | ||
| 13 | + </root> | ||
| 14 | + | ||
| 15 | + <logger name="info.xiaomo" level="DEBUG"/> | ||
| 16 | + | ||
| 17 | + </configuration> | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments