* @apiSuccessExample {JSON} return sample: * {"Code": "0", "MSG": "Registered successfully"} */ Creating a document interface with the Apidoc commandThe first CD to the project's outer directory, and the outer layer to build an output document directory, I built the DOCAPI.Output command:Apidoc-i chapter4/-O apidoc/ -I input directory-o output directoryChapter4 is the name of my project.You can see that many files have been generated in the Apidoc directory:Open ind
current transaction.
REQUIRES_NEW: Creates a new transaction and suspends the current transaction if a transaction is currently present.
NOT_SUPPORTED: Runs in a non-transactional manner, suspending the current transaction if a transaction is currently present.
NEVER: Runs in a non-transactional manner and throws an exception if a transaction is currently present.
NESTED: Creates a transaction to run as a nested transaction for the current transaction if there is currently a tra
ersonrepository.save (person);If you want to do more, you can refer to the SPRING-DATA-LDAP documentation for use.Connecting to the LDAP Service sideIn this case, the embedded LDAP server is used, in fact, this method is limited to our local testing and development, and the LDAP Service side must be deployed independently in the real environment.In the Spring boot package, we only need to configure the following parameters to connect the above example to the remote LDAP instead of the embedded
configuration, Spring Security provides a filter to intercept requests and authenticate users. If the user authentication fails, the page is redirected to /login?error , and the page displays the appropriate error message. If the user wants to log out of the login, the /login?logout page will display the corresponding success message by accessing the request and completing the logout.Here, we enable the app and access it http://localhost:8080/ , which can be accessed normally. But http://localh
= ' name ', column = ' name '), @Result (property = ' age ', column = ' Age ')}) @Select (" Select name, age from User ") listIn the preceding code, the property attribute in the @Result corresponds to the member name in the user object, and column corresponds to the field name of the Select. The id attribute is intentionally not detected in this configuration, only the name and age objects in the user counterpart are mapped, so that the ID identified is null by the following unit test, and
', title= ' Some book '} 2017-04-23 18:17:09.479 INFO 8054-[main] Forezp. Apprunner:isbn-4567–>book{isbn= ' isbn-4567 ', title= ' Some book '} 2017-04-23 18:17:09.480 INFO 8054-[main] Forezp. Apprunner:isbn-1234–>book{isbn= ' isbn-1234 ', title= ' Some book '} 2017-04-23 18:17:09.480 INFO 8054-[main] Forezp. Apprunner:isbn-4567–>book{isbn= ' isbn-4567 ', title= ' Some book '} 2017-04-23 18:17:09.481 INFO 8054-[main] Forezp. Apprunner:isbn-1234–>book{isbn= ' isbn-1234 ', title= ' Some book '} 20
(initialdelay=1000, fixedrate=5000): Executes after the first delay of 1 seconds, followed by fixedrate rules every 5 seconds
@Scheduled (cron= "/5"): Define rules by cron expressions, what are CRO expressions, self-search engines.
TestStart the Springboot project, the console has not been 5s to print out the current time.
2017-04-29 17:39:37.672 INFO 677-[pool-1-thread-1] com.forezp.task.ScheduledTasks:The time is now 17:39:372017-04-29 17:39:42.671 INFO 677-[pool-1-thread-1]
For a simple example, on the basis of the QuickStart project, take a simple example to render a page through Thymeleaf.@Controller public class HelloController { @RequestMapping("/") public String index(ModelMap map) { // 加入一个属性,用来在模板中读取 map.addAttribute("host", "http://blog.didispace.com"); // return模板文件的名称,对应src/main/resources/templates/index.html return "index"; } } Distributed micro-service
How to remove the win7 icon from my computer in the system? I do not like the software icon in the resource manager. I believe that many friends will feel the same way as I do. But now more and more software does not levy the user's consent to force the icon to add to the resource manager, this rogue behavior is very annoying, and do not allow us to delete, then we have no way to let it disappear?
1, first press the keyboard: Win key +r key, and then in the pop-up Run window input regedit carri
Go to Micro Cloud Web page Version = "Upload =" Select the local file to upload the file can be uploaded;
1, upload the file by default select the network disk click "Upload file" jump out of the following frame (as shown below), if you do not want to upload to the network disk can click Modify to re-select.
2, click "Modify" to select the network disk under the directory or album;
3, upload can disp
initialization script was executed at the fourth step, the execution did not execute the V1__Base_version.sql script again to rebuild the user table.
Sixth step, we can try to modify V1__Base_version.sql the name field length in the script, and then run the unit test, at this point we can get the following error:ERROR 83791---[main] o.s.boot.springapplication : Application Startup Failedorg.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Flywa
to the interface method name, "*" followed by comments, in the following is the custom SQL statement, see the official document.Web tierThe service layer is omitted and the actual development is made up.@RestController @requestmapping ("/account") public class AccountController {@Autowired Accountdao Accountdao; @RequestMapping (value = "/list", method = requestmethod.get) public list Source SourceThrough the postman test, the code has all passed.Enterprise distribution
Tencent Micro Cloud Ordinary users more than 10G how to do?
Tencent Micro Cloud
Tencent Micro Cloud Ordinary users more than 10G how to do?
Tencent Micro
launches, and architecture for building infrastructure around application architectures. This requires the application of adequate cohesion, but also convenient operation and management. This concept coincides with the concept of micro-service.The next step is to see why spring Cloud adapts to the microservices architecture in terms of the evolution of the service architecture. Click here to view the colle
Micro Cloud services also launched a corresponding Android, Windows and other platforms of micro-cloud clients.
Micro Cloud Network Disk
Automatic synchronization of files to the clou
1. How to get into the micro cloud
You can open the cloud via desktop shortcuts, Start menu, tray icon, etc.
2. How the micro-Cloud network disk is synchronized
A after landing, the micro
Springcloud (10): Service Gateway Zuul
In the previous article we introduced the Eureka used for service registration in discovery, feign support service invocation and balance load, hystrix processing services to fuse to prevent failure spread, Spring Cloud Config Service cluster Configuration center, it seems that a micro-service framework has been completed.
We are still less concerned about the externa
Spring Cloud is a microservices framework that provides a full range of distributed system solutions compared to RPC frameworks such as Dubbo.Spring Cloud encapsulates many of the open source components of the microservices infrastructure, while also enabling integration with the cloud platform and the spring Boot development framework.Spring
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.