https://my.oschina.net/genghz/blog/1789240
Absrtact: This is a Spring-boot integration graphql Introductory course, only for reference study, first write, please forgive me
This article describes a Spring-boot + graphql that is a graphql Java starter Project GRAPHQL what exactly is
GRAPHQL is an API query language for
Jedisconnectionfactory ();
}
@Bean public
redistemplate
After the configuration is completed, write the test case experiment effect@RunWith (Springjunit4classrunner.class)
@SpringApplicationConfiguration (application.class) Public
class applicationtests {
@Autowired
private redistemplate Of course the data operations provided in Spring-data-redis are much more than this, this articl
4. JSP The custom error page cannot overwrite the spring boot default error page
Four. Jsp Demo to Add configuration parameters:Spring.mvc.view.prefix:/web-inf/templates/Spring.mvc.view.suffix:. jspFollow the public number:650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/89/89/wKiom1gW9oDDdQUFAABtN-e5hXo162.jpg "title=" Dragon Fruit Academy qr code. JPG "alt=" wkiom1gw9odddqufaabtn-e5
The article realizes the separation of one master and two from the following: Engineering catalogue
First POM file
Dependency> groupId>org.springframework.bootgroupId> Artifactid>spring-boot-starter-webArtifactid> Exclusions> exclusion> groupId>org.springframework.bootgroupId> Artifactid>spring-boot-starter-loggingAr
Spring Boot war package instance tutorial, springwar
In addition to executable jar packages, Spring Boot also supports traditional war packages. This article describes how to use Spring Boot
Spring boot uses properties to define the short message template method tutorial, springproperties
Preface
We usually encounter requirements such as text message sending and email sending during development. The sending content is often provided by the customer as a template. If We splice strings in the program to fix this template, obviously, it is a kind of pra
Intellij IDEA graphic tutorial for creating a spring-boot project,
Development Environment:
Jdk: jdk 8
Maven: maven-3.5.2
Development Tool: Itellij IDEA 2017.1.
Prerequisites: you have installed the above software and configured the jdk and maven environment variables.
Procedure:
Click Upload file --- Select new --- and click project..., as shown in:
Cli
server.port=8082
server.address=127.0.0.1
# server.sessiontimeout=30
#访问路径名称
server.contextpath=/boot
Create a new Test.controller package and create a new Web class:
/**
* @Package: Com.springboot.test.controller
* @ClassName:
Test * @Description: Testing Web
* @Author Shuyu.wang
* @Date 2017-12-07 10:05
**/
@RestController public
class TestController {
@ Requestmapping (value = "/hello", metho
())); } @Scheduled (Cron= "0 28 11?" * *" )//use the Cron property to execute at a specified time, which in this case is 11:28 execution; Cron is a scheduled task under Unix and Unix-like systems (such as Linux) Public voidfixtimeexecution () {System.out.println ("At specified time" + Dateformat.format (NewDate ()) + "? Execution"); }}2GT; Configuration class Package Com.wisely.highlight_spring4.ch3.taskscheduler; Import Org.springframework.context.annotation.ComponentScan; Import org.sp
pk1640-Dragon Fruit Spring Boot Tutorial CompleteDocking real data from 0 development front-end separation Enterprise-class online projectThe beginning of the new year, learning to be early, drip records, learning is progress!Essay background: In a lot of times, many of the early friends will ask me: I am from other languages transferred to the development of the
The Druid is the best database connection pool in the Java language and provides powerful monitoring and scaling capabilities. the industry compared Druid and HIKARICP, although HIKARICP performance is higher than Druid, but because Druid includes many dimensions of statistical and analytical functions, so this is why everyone chooses to use it. The following describes how to configure using Druid in Springboot 1: Modify the Pom file to add dependencies:
2: Add the appropriate data sourc
=9200 It is this configuration by default, no special requirements, no modifications are required locally.Start Elasticsearch./bin/elasticsearch Launch success, access to localhost:9200, Web page display:{ "name": "56IrTCM", "cluster_name": "Elasticsearch", "Cluster_uuid": "E4ja7vs2tiki1bsggeaa6q", " Version ": { " number ":" 5.2.2 ", " Build_hash ":" F9d9b74 ", " build_date ":" 2017-02-24t17:26:45.835z ", "Build_snapshot": false, "lucene_version": "6.4.1" }, "tagline": "Y
Configuring, starting KibanaTo Kibana's installation directory: The default configuration is sufficient.Visit localhost:5601, Web page display:Proof of successful start-up.Create a Springboot ProjectThe starting dependency is as follows: log4j configuration,/src/resources/log4j.properties as follows:log4j.rootlogger=info,console# for package Com.demo.elk, log would is sent to socket appender.log4j.logger.com.forezp= DEBUG, socket# Appender socketlog4j.appender.socket=org.apache.log4j.net.socke
, adhere to the principle of diversification, choose a better and more economical way, rather than top-down unification. More commonly, we can directly use MongoDB to store key value pairs of data types, such as: Verification Code, session, etc. due to MongoDB's scale-out capability, it can also be used to store data that is very large in the future, such as: logs, comments, etc. Because MongoDB stores the weak type of data, it can also be used to store some changeable JSON data, such as: the in
.
Using the public number editor has a very headache problem-the pasted code, the format is garbled, and particularly ugly. This editor can solve this problem.
3. Introductory case(1) integrating Maven in Eclipse development tools (readers can also contact the author for a tutorial on using the MAVEN framework) (2) Create a new Mavan Web project in eclipse named Hellotest(3) Add the following configuration to the Pom.xml file: to build a
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.