arnaldop / enhanced-pet-clinic Goto Github PK
View Code? Open in Web Editor NEWSpring Pet Clinic example using Spring-Boot, Thymeleaf, AOP, MVC, Embedded Tomcat, Security, and more.
License: Apache License 2.0
Spring Pet Clinic example using Spring-Boot, Thymeleaf, AOP, MVC, Embedded Tomcat, Security, and more.
License: Apache License 2.0
HI!
I have forked the enhanced-pet-clinic project. Then I imported the project in STS environment based on Eclipse Neon. STS in throwing the following error:
log cannot be resolved
on every line where the log
object is used like so :
log.info("(beforeExceptionHandler) Before executing '" + jp.getSignature().toLongString() + "'");
At the state of the last commit (934b259) on March 31, 2016 the project is using project lombok version 1.16.8.
When I build enhanced-pet-clinic with the newest version of Spring Boot, I get an error after clicking create user on the form. There is an error about the attribute map being empty. Any ideas?
Getting traceback with this message:
PreparedStatementCallback; bad SQL grammar [select username,authority from authorities where username = ?]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'username' in 'field list'
Is this a known problem?
I should mention that I tried to change the project to use a mysql database instead of in-memory db.
trying changing mysql table definition.
Adding username to authorities table fixed issue.
Upon using that spring config, running the unmodified sql files that came with the project I get the below error.
Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select username,authority from authorities where username = ?]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'username' in 'field list'
Here is the current schema for table authorities:
id bigint(20) NO PRI NULL auto_increment
authority varchar(255) NO NULL
I could create a 'username' field, but that seems wrong here.
Honestly I dont know where this is coming from and therefore not sure where to check to fix it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.