This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"model": "gpt-3.5-turbo-0613", | |
"function_call": { | |
"name": "query_enrichment" | |
}, | |
"messages": [ | |
{ | |
"role": "user", | |
"content": "Write a newsletter." | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
semicolon in bash - inline for | |
for i in `ps aux | grep java | awk '{ print $2 }'`; do echo $i; kill $i ; done | |
https://unix.stackexchange.com/questions/48805/semicolon-in-conditional-structures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[v] rest get | |
redis konfiguracja intentow lub statyczna zaleznosci od profilu | |
jpa- zapytnie wyszukujące po okreslonej dacie | |
gists w eclipsie | |
qualifier ??? https://www.baeldung.com/spring-autowire | |
OO java - extends and implemnets - nie mozna pozniej przy deklarowaniu klasy uzyc intefejsu... | |
solid | |
-integracja przez rabit i kafka | |
-przejscie na serwice discovery, configi, feign, spring cloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ctrl + click | |
https://www.jetbrains.com/help/idea/2017.1/navigating-to-class-file-or-symbol-by-name.html | |
--jak nie działa to przechodzenie pomiedzy klasami to: | |
Right-click src folder | |
Mark Directory as > Sources Root | |
http://stackoverflow.com/questions/37282285/intellij-cannot-find-any-declarations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
http://stackoverflow.com/questions/11708967/what-is-the-difference-between-applicationcontext-and-webapplicationcontext-in-s | |
2 | |
http://stackoverflow.com/questions/3652090/difference-between-applicationcontext-xml-and-spring-servlet-xml-in-spring-frame | |
Ad 1 | |
This allows you to run some services as the singletons for the entire application (Spring Security beans and basic database access services typically reside here) and another as separated services in the corresponding servlets to avoid name clashes between beans. For example one servlet context will be serving the web pages and another will be implementing a stateless web service. | |
This two level separation comes out of the box when you use the spring servlet classes: to configure the root application context you should use context-param tag in your web.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://spring.io/blog/2009/12/02/obtaining-spring-3-artifacts-with-maven/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.tomjewett.com/dbdesign/dbdesign.php?page=aggregate.php | |
System <>----Component | |
The system is an aggregation of components. | |
Component ma kolumne FK System_id. wskazującą na system do którego należy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://indrabasak.wordpress.com/2016/04/07/swagger-2-integration-with-spring-rest/ | |
annotacje: | |
https://jakubstas.com/spring-jersey-swagger-create-documentation/#.WKwNLrLhCpo | |
------ | |
servlet disptacher | |
-------- | |
<!-- Direct static mappings --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
external liby dla hybrisa musza byc w katalogu /lib projektu. | |
dlatego trzeba dodac do mavena kopiowanie do tego katalogu, zeby ant mogl je widziec. | |
<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>rafalRest1</groupId> | |
<artifactId>rafalRest1</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<build> | |
<sourceDirectory>src</sourceDirectory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ustawienia proxy w settings.xml | |
Preferences ->Maven-> User Settings | |
http://www.vogella.com/tutorials/EclipseMaven/article.html#convert-to-maven-project | |
1. Right-click the pom.xml file and select Run As ▸ Maven build. | |
2. Enter "dependency:resolve" as Goal. | |
NewerOlder