docker container prune -f
docker image prune -f
docker system prune -f
/c/Program\ Files/7-Zip/7z.exe l ~/.m2/repository/com/github/sarxos/v4l4j/0.9.1-r507/v4l4j-0.9.1-r507.jar | grep 'com\\github\\sarxos\\v4l4j\\V4L4J.class'
2015-02-19 19:54:26 ..... 1946 1107 com\github\sarxos\v4l4j\V4L4J.class
docker run -it -p 8080:8080 tomcat:8.0-alpine
....
19-Aug-2020 12:32:47.773 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
19-Aug-2020 12:32:47.835 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
19-Aug-2020 12:32:47.911 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 3629 ms
curl -I http://127.0.0.1:8080
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 19 Aug 2020 12:32:55 GMT
curl http://127.0.0.1:8080 2>/dev/null| lynx -stdin -dump | head -10
[1]Home [2]Documentation [3]Configuration [4]Examples [5]Wiki
[6]Mailing Lists [7]Find Help
Apache Tomcat/8.0.53
If you're seeing this, you've successfully installed Tomcat.
day_label=\u0434\u0435\u043d\u044c
month_label=\u043c\u0435\u0441\u044f\u0446
year_label=\u0433\u043e\u0434
<Label text="%date_label" GridPane.columnIndex="0" GridPane.rowIndex="2">
<!--
https://stackoverflow.com/questions/53394592/how-do-we-define-the-context-menu-in-fxml
-->
<contextMenu>
<ContextMenu fx:id="cmTF">
<items>
<MenuItem text="%day_label"/>
<MenuItem text="%month_label"/>
<MenuItem text="%year_label"/>
</items>
</ContextMenu>
</contextMenu>
</Label>
ResourceBundle bundle = ResourceBundle.getBundle("messages", new Locale("ru", "RU");
FXMLLoader loader = new FXMLLoader(getClass().getResource("/panel.fxml"), bundle);
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>example</groupId>
<artifactId>static_page</artifactId>
<version>0.4.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>static_page</name>
<description>Springboot Template page Demo project</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.4.RELEASE</version>
<relativePath/>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<finalName>${project.groupId}.${project.artifactId}</finalName>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<failOnMissingWebXml>false</failOnMissingWebXml>
<thymeleaf.version>3.0.6.RELEASE</thymeleaf.version>
<thymeleaf-extras-java8time.version>3.0.0.RELEASE</thymeleaf-extras-java8time.version>
<thymeleaf-layout-dialect.version>2.2.2</thymeleaf-layout-dialect.version>
<assertj.version>3.8.0</assertj.version>
<webjars.bootstrap.version>3.3.7</webjars.bootstrap.version>
<webjars.jquery.version>3.2.1</webjars.jquery.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-java8time</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>${webjars.bootstrap.version}</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<version>${webjars.jquery.version}</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.owasp.antisamy</groupId>
<artifactId>antisamy</artifactId>
<version>1.5.9</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.13.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<finalName>${finalName}</finalName>
</configuration>
</plugin>
</plugins>
</build>
</project>
package ru.belov.spring.config.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/design")
public class DesignTacoController {
@GetMapping
public String showDesignForm(Model model) {
return "design";
}
}
package ru.belov.spring.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication
@EnableAsync
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class);
}
}
mkdir -p src/main/resources/templates
mv src/main/webapp/WEB-INF/views/design.html src/main/resources/templates/
th
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Taco Cloud</title>
<link rel="stylesheet" th:href="@{/styles.css}" />
</head>
<body>
<h1>Design your taco!</h1>
<img th:src="@{/images/tako.png}"/>
</body>
</html>
mvn clean spring-boot:run
design.html
вычисляемый путь <html xmlns:th="http://www.thymeleaf.org"...>
...
<img th:src="@{/images/image.png}"/>
src\main\resources\static\images\image.png
FROM webdevops/php-dev:7.3
RUN php artisan migrate:fresh --seed
build:
context: .
docker-compose.yaml
grep -A 1 'ABCD' test.txt | grep -v 'ABCD'
7777
естествненно если во второй строке (которую хотим сохранить) тоже есть ABCD то надо найти то чего там нет... но принцип остается таким же